Commit 64ee9490 by Eric Christopher Committed by Eric Christopher

tm.texi (OBJC_JBLEN): Describe.

2006-09-19  Eric Christopher  <echristo@apple.com>

        * doc/tm.texi (OBJC_JBLEN): Describe.
        * config/i386/darwin.h (OBJC_JBLEN): Define.
        * config/rs6000/darwin.h: Ditto.

2006-09-19  Eric Christopher  <echristo@apple.com>

        * objc-act.c (JBLEN): Rename to OBJC_JBLEN,
        default to something innocuous.
        (build_next_objc_exception_stuff): Rename JBLEN.

From-SVN: r117066
parent 83a4f4f7
2006-09-19 Eric Christopher <echristo@apple.com>
* doc/tm.texi (OBJC_JBLEN): Describe.
* config/i386/darwin.h (OBJC_JBLEN): Define.
* config/rs6000/darwin.h: Ditto.
2006-09-19 Steven Bosscher <steven@gcc.gnu.org> 2006-09-19 Steven Bosscher <steven@gcc.gnu.org>
PR rtl-optimization/21299 PR rtl-optimization/21299
......
...@@ -37,6 +37,9 @@ Boston, MA 02110-1301, USA. */ ...@@ -37,6 +37,9 @@ Boston, MA 02110-1301, USA. */
#endif #endif
#endif #endif
/* Size of the Obj-C jump buffer. */
#define OBJC_JBLEN ((TARGET_64BIT) ? ((9 * 2) + 3 + 16) : (18))
#undef TARGET_FPMATH_DEFAULT #undef TARGET_FPMATH_DEFAULT
#define TARGET_FPMATH_DEFAULT (TARGET_SSE ? FPMATH_SSE : FPMATH_387) #define TARGET_FPMATH_DEFAULT (TARGET_SSE ? FPMATH_SSE : FPMATH_387)
......
...@@ -40,6 +40,9 @@ ...@@ -40,6 +40,9 @@
#define TARGET_OBJECT_FORMAT OBJECT_MACHO #define TARGET_OBJECT_FORMAT OBJECT_MACHO
/* Size of the Obj-C jump buffer. */
#define OBJC_JBLEN ((TARGET_64BIT) ? (26*2 + 18*2 + 129 + 1) : (26 + 18*2 + 129 + 1))
/* We're not ever going to do TOCs. */ /* We're not ever going to do TOCs. */
#define TARGET_TOC 0 #define TARGET_TOC 0
......
...@@ -9915,3 +9915,8 @@ This macro determines whether to use the JCR section to register Java ...@@ -9915,3 +9915,8 @@ This macro determines whether to use the JCR section to register Java
classes. By default, TARGET_USE_JCR_SECTION is defined to 1 if both classes. By default, TARGET_USE_JCR_SECTION is defined to 1 if both
SUPPORTS_WEAK and TARGET_HAVE_NAMED_SECTIONS are true, else 0. SUPPORTS_WEAK and TARGET_HAVE_NAMED_SECTIONS are true, else 0.
@end defmac @end defmac
@defmac OBJC_JBLEN
This macro determines the size of the objective C jump buffer for the
NeXT runtime. By default, OBJC_JBLEN is defined to an innocuous value.
@end defmac
2006-09-19 Eric Christopher <echristo@apple.com>
* objc-act.c (JBLEN): Rename to OBJC_JBLEN,
default to something innocuous.
(build_next_objc_exception_stuff): Rename JBLEN.
2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de> 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
* Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies. * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
......
...@@ -3953,19 +3953,16 @@ objc_build_synchronized (location_t start_locus, tree mutex, tree body) ...@@ -3953,19 +3953,16 @@ objc_build_synchronized (location_t start_locus, tree mutex, tree body)
struct _objc_exception_data struct _objc_exception_data
{ {
int buf[JBLEN]; int buf[OBJC_JBLEN];
void *pointers[4]; void *pointers[4];
}; */ }; */
/* The following yuckiness should prevent users from having to #include /* The following yuckiness should prevent users from having to #include
<setjmp.h> in their code... */ <setjmp.h> in their code... */
#ifdef TARGET_POWERPC /* Define to a harmless positive value so the below code doesn't die. */
/* snarfed from /usr/include/ppc/setjmp.h */ #ifndef OBJC_JBLEN
#define JBLEN (26 + 36 + 129 + 1) #define OBJC_JBLEN 18
#else
/* snarfed from /usr/include/i386/{setjmp,signal}.h */
#define JBLEN 18
#endif #endif
static void static void
...@@ -3976,9 +3973,9 @@ build_next_objc_exception_stuff (void) ...@@ -3976,9 +3973,9 @@ build_next_objc_exception_stuff (void)
objc_exception_data_template objc_exception_data_template
= start_struct (RECORD_TYPE, get_identifier (UTAG_EXCDATA)); = start_struct (RECORD_TYPE, get_identifier (UTAG_EXCDATA));
/* int buf[JBLEN]; */ /* int buf[OBJC_JBLEN]; */
index = build_index_type (build_int_cst (NULL_TREE, JBLEN - 1)); index = build_index_type (build_int_cst (NULL_TREE, OBJC_JBLEN - 1));
field_decl = create_field_decl (build_array_type (integer_type_node, index), field_decl = create_field_decl (build_array_type (integer_type_node, index),
"buf"); "buf");
field_decl_chain = field_decl; field_decl_chain = field_decl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment