diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-14 08:25:18 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-14 08:25:18 +0000 |
commit | fa29d73358dc13ba421a1b12b9b18ab5597e859d (patch) | |
tree | 5f52bb32e96bf7b8a9892d3acb3d434648793276 /gcc/unwind-dw2-fde-darwin.c | |
parent | ff4320289c9fd56285928b95dffa97b75ceefd08 (diff) | |
download | gcc-fa29d73358dc13ba421a1b12b9b18ab5597e859d.tar.gz |
* unwind-dw2-fde-darwin.c (examine_objects): Fix aliasing in
read_encoded_value_with_base call.
* unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
* unwind-dw2-fde.c (_Unwind_Find_FDE): Likewise.
* unwind-dw2.c (extract_cie_info): Fix aliasing in
read_encoded_value call.
(execute_cfa_program, uw_frame_state_for): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100927 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unwind-dw2-fde-darwin.c')
-rw-r--r-- | gcc/unwind-dw2-fde-darwin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/unwind-dw2-fde-darwin.c b/gcc/unwind-dw2-fde-darwin.c index c0db8e1bd4b..f242654baf9 100644 --- a/gcc/unwind-dw2-fde-darwin.c +++ b/gcc/unwind-dw2-fde-darwin.c @@ -220,6 +220,7 @@ examine_objects (void *pc, struct dwarf_eh_bases *bases, int dont_alloc) if (result) { int encoding; + _Unwind_Ptr func; bases->tbase = ob->tbase; bases->dbase = ob->dbase; @@ -229,8 +230,8 @@ examine_objects (void *pc, struct dwarf_eh_bases *bases, int dont_alloc) encoding = get_fde_encoding (result); read_encoded_value_with_base (encoding, base_from_object (encoding, ob), - result->pc_begin, - (_Unwind_Ptr *)&bases->func); + result->pc_begin, &func); + bases->func = (void *) func; break; } } |