This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] fix 64-bit eh for objc


While wandering through test results and differences I noticed these. IIRC Mike fixed one and Fariborz fixed the other.

Tested on ppc64-darwin and x86_64-darwin, no regressions and exceptions.exp now passes cleanly for all architectures.

OK?

-eric

2006-09-18  Eric Christopher  <echristo@apple.com>
	    Mike Stump  <mrs@apple.com>
	    Fariborz Jahanian <fjahanian@apple.com>

* objc-act.c (JBLEN): Add 64-bit definitions.
Index: objc-act.c
===================================================================
--- objc-act.c	(revision 117033)
+++ objc-act.c	(working copy)
@@ -3962,10 +3962,10 @@ objc_build_synchronized (location_t star
 
 #ifdef TARGET_POWERPC
 /* snarfed from /usr/include/ppc/setjmp.h */
-#define JBLEN (26 + 36 + 129 + 1)
+#define JBLEN ((TARGET_64BIT) ? (26*2 + 18*2 + 129 + 1) : (26 + 18*2 + 129 + 1))
 #else
 /* snarfed from /usr/include/i386/{setjmp,signal}.h */
-#define JBLEN 18
+#define JBLEN ((TARGET_64BIT) ? ((9 * 2) + 3 + 16) : (18))
 #endif
 
 static void

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]