This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] Fix 64-bit AIX exception handling
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 11 Sep 2004 13:15:45 -0400
- Subject: [PATCH, committed] Fix 64-bit AIX exception handling
When Jakub updated the rs6000 port exception handling last year,
the change to aix.h used the PPC64 Linux macro to test for 64-bit mode
instead of the AIX macro. Committed to both mainline and 3.4 branch.
David
PR target/17277
* config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
choose 64-bit version.
Index: aix.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/aix.h,v
retrieving revision 1.48
diff -c -p -r1.48 aix.h
*** aix.h 13 Jul 2004 07:45:04 -0000 1.48
--- aix.h 11 Sep 2004 16:51:39 -0000
***************
*** 228,234 ****
code that does the save/restore is generated by the linker, so
we have no good way to determine at compile time what to do. */
! #ifdef __powerpc64__
#define MD_FROB_UPDATE_CONTEXT(CTX, FS) \
do { \
if ((FS)->regs.reg[2].how == REG_UNSAVED) \
--- 228,234 ----
code that does the save/restore is generated by the linker, so
we have no good way to determine at compile time what to do. */
! #ifdef __64BIT__
#define MD_FROB_UPDATE_CONTEXT(CTX, FS) \
do { \
if ((FS)->regs.reg[2].how == REG_UNSAVED) \