Clean up patches for delta88 nested function support.
authorJim Wilson <wilson@cygnus.com>
Wed, 10 Sep 1997 23:34:58 +0000 (23:34 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 10 Sep 1997 23:34:58 +0000 (16:34 -0700)
* m88k/m88k.c (struct option): Rename to struct options.
* m88k/dolph.h (INITIALIZE_TRAMPOLINE): Delete here.
* m88k/sysv3.h (INITIALIZE_TRAMPOLINE): Delete ifdef and comments.
* libgcc2.c (__enable_execute_stack): Check for __sysV88__ not
__DOLPHIN__ or sysV88.

From-SVN: r15393

gcc/ChangeLog
gcc/config/m88k/dolph.h
gcc/config/m88k/m88k.c
gcc/config/m88k/sysv3.h
gcc/libgcc2.c

index 10dbc3470c579516316e2ba26623bbb22d681877..8cedf20d825a81d704852fcc5d3361d3970cb35f 100644 (file)
@@ -1,3 +1,11 @@
+Wed Sep 10 16:01:15 1997  Jim Wilson  <wilson@cygnus.com>
+
+       * m88k/m88k.c (struct option): Rename to struct options.
+       * m88k/dolph.h (INITIALIZE_TRAMPOLINE): Delete here.
+       * m88k/sysv3.h (INITIALIZE_TRAMPOLINE): Delete ifdef and comments.
+       * libgcc2.c (__enable_execute_stack): Check for __sysV88__ not
+       __DOLPHIN__ or sysV88.
+
 Wed Sep 10 16:16:07 1997  Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
 
        * Makefile.in (LN): Add new symbol.  
index 48c0378636a03b8af9001c178df5a2c4083968cc..1ebeaf76cdbafeb00f2c7227bf35850247fc2f16 100644 (file)
@@ -41,14 +41,3 @@ Boston, MA 02111-1307, USA.  */
 
 #undef CPU_DEFAULT
 #define CPU_DEFAULT MASK_88000
-
-#undef INITIALIZE_TRAMPOLINE 
-#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT)                      \
-{                                                                      \
-  emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 40)), FNADDR); \
-  emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 36)), CXT); \
-  emit_call_insn (gen_call( gen_rtx (MEM, SImode,                      \
-                                    gen_rtx(SYMBOL_REF,Pmode,          \
-                                            "__enable_execute_stack")), \
-                          const0_rtx));                                \
-}
index 19f8e67c429371066e23b8742d546c8576baa674..f8694615b475b281826295147ccd1a352671a58b 100644 (file)
@@ -1479,7 +1479,7 @@ pc_or_label_ref (op, mode)
 \f
 /* Output to FILE the start of the assembler file.  */
 
-struct option
+struct options
 {
   char *string;
   int *variable;
@@ -1510,8 +1510,8 @@ static void
 output_options (file, f_options, f_len, W_options, W_len,
                pos, max, sep, indent, term)
      FILE *file;
-     struct option *f_options;
-     struct option *W_options;
+     struct options *f_options;
+     struct options *W_options;
      int f_len, W_len;
      int pos;
      int max;
@@ -1559,8 +1559,8 @@ output_options (file, f_options, f_len, W_options, W_len,
 void
 output_file_start (file, f_options, f_len, W_options, W_len)
      FILE *file;
-     struct option *f_options;
-     struct option *W_options;
+     struct options *f_options;
+     struct options *W_options;
      int f_len, W_len;
 {
   register int pos;
index e3c318ef90b263383ade339970b807db9d4dc14d..7fe4f9d3be67f47bbb4d3703b00fabeecd3d0e56 100644 (file)
@@ -138,20 +138,13 @@ do {                                                                      \
        __DTOR_LIST__[i] ();                    \
   } while (0)                                  
 
-#ifdef sysV88
-/* manfred@s-direktnet.de: Re-define INITIALIZE_TRAMPOLINE to additionally call
-   __enable_execute_stack.
-   I don't actually have a clue why nobody else than sysV88 and __DOLPHIN__
-   needs to call this; perhaps they didn't ever run the c-torture tests
-   getting segmentations violations and/or bus errors with nested functions.  */
 #undef INITIALIZE_TRAMPOLINE 
 #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT)                      \
 {                                                                      \
   emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 40)), FNADDR); \
   emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 36)), CXT); \
   emit_call_insn (gen_call (gen_rtx (MEM, SImode,                      \
-                           gen_rtx (SYMBOL_REF, Pmode,                 \
-                                    "__enable_execute_stack")),        \
-                 const0_rtx));                                         \
+                                    gen_rtx (SYMBOL_REF, Pmode,        \
+                                            "__enable_execute_stack")), \
+                          const0_rtx));                                \
 }
-#endif
index 23a4e5a7149561b909de65d410056d3e64fcd6ca..0e9252e12a3900fb17e7ec608746600b4533734c 100644 (file)
@@ -2827,7 +2827,7 @@ __enable_execute_stack ()
 }
 #endif /* __convex__ */
 
-#if defined (__DOLPHIN__) || defined (sysV88)
+#ifdef __sysV88__
 
 /* Modified from the convex -code above.  */
 
@@ -2857,7 +2857,7 @@ __enable_execute_stack ()
   errno=save_errno;
 }
 
-#endif /* __DOLPHIN__ or sysV88 */
+#endif /* __sysV88__ */
 
 #ifdef __pyr__