Commit db87ec0b by Jim Wilson Committed by Jim Wilson

Clean up patches for delta88 nested function support.

	* 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
parent dc3fce90
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) Wed Sep 10 16:16:07 1997 Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
* Makefile.in (LN): Add new symbol. * Makefile.in (LN): Add new symbol.
......
...@@ -41,14 +41,3 @@ Boston, MA 02111-1307, USA. */ ...@@ -41,14 +41,3 @@ Boston, MA 02111-1307, USA. */
#undef CPU_DEFAULT #undef CPU_DEFAULT
#define CPU_DEFAULT MASK_88000 #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)); \
}
...@@ -1479,7 +1479,7 @@ pc_or_label_ref (op, mode) ...@@ -1479,7 +1479,7 @@ pc_or_label_ref (op, mode)
/* Output to FILE the start of the assembler file. */ /* Output to FILE the start of the assembler file. */
struct option struct options
{ {
char *string; char *string;
int *variable; int *variable;
...@@ -1510,8 +1510,8 @@ static void ...@@ -1510,8 +1510,8 @@ static void
output_options (file, f_options, f_len, W_options, W_len, output_options (file, f_options, f_len, W_options, W_len,
pos, max, sep, indent, term) pos, max, sep, indent, term)
FILE *file; FILE *file;
struct option *f_options; struct options *f_options;
struct option *W_options; struct options *W_options;
int f_len, W_len; int f_len, W_len;
int pos; int pos;
int max; int max;
...@@ -1559,8 +1559,8 @@ output_options (file, f_options, f_len, W_options, W_len, ...@@ -1559,8 +1559,8 @@ output_options (file, f_options, f_len, W_options, W_len,
void void
output_file_start (file, f_options, f_len, W_options, W_len) output_file_start (file, f_options, f_len, W_options, W_len)
FILE *file; FILE *file;
struct option *f_options; struct options *f_options;
struct option *W_options; struct options *W_options;
int f_len, W_len; int f_len, W_len;
{ {
register int pos; register int pos;
......
...@@ -138,12 +138,6 @@ do { \ ...@@ -138,12 +138,6 @@ do { \
__DTOR_LIST__[i] (); \ __DTOR_LIST__[i] (); \
} while (0) } 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 #undef INITIALIZE_TRAMPOLINE
#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \ #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) \
{ \ { \
...@@ -154,4 +148,3 @@ do { \ ...@@ -154,4 +148,3 @@ do { \
"__enable_execute_stack")), \ "__enable_execute_stack")), \
const0_rtx)); \ const0_rtx)); \
} }
#endif
...@@ -2827,7 +2827,7 @@ __enable_execute_stack () ...@@ -2827,7 +2827,7 @@ __enable_execute_stack ()
} }
#endif /* __convex__ */ #endif /* __convex__ */
#if defined (__DOLPHIN__) || defined (sysV88) #ifdef __sysV88__
/* Modified from the convex -code above. */ /* Modified from the convex -code above. */
...@@ -2857,7 +2857,7 @@ __enable_execute_stack () ...@@ -2857,7 +2857,7 @@ __enable_execute_stack ()
errno=save_errno; errno=save_errno;
} }
#endif /* __DOLPHIN__ or sysV88 */ #endif /* __sysV88__ */
#ifdef __pyr__ #ifdef __pyr__
......
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