This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] fix 64-bit eh for objc
- From: Eric Christopher <echristo at apple dot com>
- To: "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 18 Sep 2006 18:30:25 -0700
- Subject: [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