diff options
author | Eric Christopher <echristo@gcc.gnu.org> | 2006-05-08 22:16:31 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2006-05-08 22:16:31 +0000 |
commit | 90c92323370522234a5e5ad26ef31e1fc838e365 (patch) | |
tree | 76bf0cb58461ac63fd23351eedaf189dd5e0f42b | |
parent | 04f77d0f3b194ada4e89a3bf8df3b55bf370fbfa (diff) | |
download | gcc-90c92323370522234a5e5ad26ef31e1fc838e365.zip gcc-90c92323370522234a5e5ad26ef31e1fc838e365.tar.gz gcc-90c92323370522234a5e5ad26ef31e1fc838e365.tar.bz2 |
unwind-dw2-fde-darwin.c (examine_objects): Only check data section for ppc.
2006-05-08 Eric Christopher <echristo@apple.com>
* unwind-dw2-fde-darwin.c (examine_objects): Only check data
section for ppc.
From-SVN: r113634
-rw-r--r-- | gcc/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/unwind-dw2-fde-darwin.c | 11 |
2 files changed, 14 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e685cdb..c2223f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-05-08 Eric Christopher <echristo@apple.com> + + * unwind-dw2-fde-darwin.c (examine_objects): Only check data + section for ppc. + 2006-05-08 Jan Hubicka <jh@suse.cz> PR middle-end/25962 @@ -59,7 +64,7 @@ 2006-05-07 Mircea Namolaru <namolaru@il.ibm.com> * opts.c (flag_see): remove its setting at -O3. - + 2006-05-07 Richard Earnshaw <rearnsha@arm.com> * genpeep.c (main): Make insn-peep.c depend on flags.h. @@ -210,9 +215,9 @@ 2006-05-02 Andrew MacLeod <amacleod@redhat.com> PR tree-optimization/27381 - * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument, + * tree-phinodes.c (remove_phi_arg_num): When moving a phi argument, maintain the same immediate_use links. - * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker + * tree-ssa-operands.c (dump_immediate_uses_for): Show iteration marker node rather than segfaulting. 2006-05-03 Jakub Jelinek <jakub@redhat.com> @@ -284,7 +289,7 @@ 2006-05-02 David Billinghurst <David.Billinghurst@riotinto.com> PR ada/27366 - * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment + * ada/env.c (__gnat_clearenv): Use unsetenv() to clear environment on Cygwin. 2006-05-02 Jakub Jelinek <jakub@redhat.com> diff --git a/gcc/unwind-dw2-fde-darwin.c b/gcc/unwind-dw2-fde-darwin.c index 0e16371..cd238db 100644 --- a/gcc/unwind-dw2-fde-darwin.c +++ b/gcc/unwind-dw2-fde-darwin.c @@ -152,18 +152,17 @@ examine_objects (void *pc, struct dwarf_eh_bases *bases, int dont_alloc) for (; image != NULL; image = image->next) if ((image->examined_p & EXAMINED_IMAGE_MASK) == 0) { - char *fde; + char *fde = NULL; unsigned long sz; -#ifdef __ppc64__ - fde = getsectdatafromheader_64 ((struct mach_header_64 *) image->mh, - "__DATA", "__eh_frame", &sz); -#else + /* For ppc only check whether or not we have __DATA eh frames. */ +#ifdef __ppc__ fde = getsectdatafromheader (image->mh, "__DATA", "__eh_frame", &sz); #endif + if (fde == NULL) { -#ifdef __ppc64__ +#if __LP64__ fde = getsectdatafromheader_64 ((struct mach_header_64 *) image->mh, "__TEXT", "__eh_frame", &sz); #else |