From fa29d73358dc13ba421a1b12b9b18ab5597e859d Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 14 Jun 2005 08:25:18 +0000 Subject: * 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 --- gcc/unwind-dw2-fde.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/unwind-dw2-fde.c') diff --git a/gcc/unwind-dw2-fde.c b/gcc/unwind-dw2-fde.c index df9eafe1f43..d6b3a5870bc 100644 --- a/gcc/unwind-dw2-fde.c +++ b/gcc/unwind-dw2-fde.c @@ -1013,6 +1013,7 @@ _Unwind_Find_FDE (void *pc, struct dwarf_eh_bases *bases) if (f) { int encoding; + _Unwind_Ptr func; bases->tbase = ob->tbase; bases->dbase = ob->dbase; @@ -1021,7 +1022,8 @@ _Unwind_Find_FDE (void *pc, struct dwarf_eh_bases *bases) if (ob->s.b.mixed_encoding) encoding = get_fde_encoding (f); read_encoded_value_with_base (encoding, base_from_object (encoding, ob), - f->pc_begin, (_Unwind_Ptr *)&bases->func); + f->pc_begin, &func); + bases->func = (void *) func; } return f; -- cgit v1.2.1