Commit 41441dc7 by Neil Booth Committed by Neil Booth

system.h: Poison old unused target macros.

	* system.h: Poison old unused target macros.
	* config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
	* config/stormy16/stormy16.c: Update references to obsolete macros.
	* config/stormy16/stormy16.h: Similarly.
	* config/stormy16/stormy16.md: Similarly.
	* config/cris/cris.h: Similarly.

From-SVN: r46269
parent 7d6fd8fd
2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk> 2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
* system.h: Poison old unused target macros.
* config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
* config/stormy16/stormy16.c: Update references to obsolete macros.
* config/stormy16/stormy16.h: Similarly.
* config/stormy16/stormy16.md: Similarly.
* config/cris/cris.h: Similarly.
2001-10-15 Neil Booth <neil@daikokuya.demon.co.uk>
* cpplib.c (struct pragma_entry): Store the name as a hashnode. * cpplib.c (struct pragma_entry): Store the name as a hashnode.
(lookup_pragma_entry, insert_pragma_entry, do_pragma, (lookup_pragma_entry, insert_pragma_entry, do_pragma,
cpp_register_pragma): Update accordingly. cpp_register_pragma): Update accordingly.
......
...@@ -509,8 +509,8 @@ extern int target_flags; ...@@ -509,8 +509,8 @@ extern int target_flags;
Old comment: (2.1: still valid in 2.7.2?) Old comment: (2.1: still valid in 2.7.2?)
Note that to make this macro affect the alignment of stack Note that to make this macro affect the alignment of stack
locals, a fix was required, and special precautions when handling locals, a fix was required, and special precautions when handling
the stack pointer in various other macros (FUNCTION_PROLOGUE et al) the stack pointer in various other macros (TARGET_ASM_FUNCTION_PROLOGUE
were required. See file "function.c". If you would just define et al) were required. See file "function.c". If you would just define
this macro, it would only affect the builtin alloca and variable this macro, it would only affect the builtin alloca and variable
local data (non-ANSI, non-K&R, Gnu C extension). */ local data (non-ANSI, non-K&R, Gnu C extension). */
#define STACK_BOUNDARY \ #define STACK_BOUNDARY \
......
...@@ -1737,10 +1737,6 @@ const_section () \ ...@@ -1737,10 +1737,6 @@ const_section () \
ASM_GENERATE_INTERNAL_LABEL (OUTPUT, temp, LABELNO); \ ASM_GENERATE_INTERNAL_LABEL (OUTPUT, temp, LABELNO); \
} while (0) } while (0)
#define ASM_OPEN_PAREN "("
#define ASM_CLOSE_PAREN ")"
/* OUTPUT OF UNINITIALIZED VARIABLES */ /* OUTPUT OF UNINITIALIZED VARIABLES */
/* This says how to output an assembler line /* This says how to output an assembler line
......
...@@ -908,12 +908,13 @@ emit_addhi3_postreload (dest, src0, src1) ...@@ -908,12 +908,13 @@ emit_addhi3_postreload (dest, src0, src1)
return insn; return insn;
} }
/* Called after register allocation to add any instructions needed for the /* Called after register allocation to add any instructions needed for
prologue. Using a prologue insn is favored compared to putting all of the the prologue. Using a prologue insn is favored compared to putting
instructions in the FUNCTION_PROLOGUE macro, since it allows the scheduler all of the instructions in the TARGET_ASM_FUNCTION_PROLOGUE macro,
to intermix instructions with the saves of the caller saved registers. In since it allows the scheduler to intermix instructions with the
some cases, it might be necessary to emit a barrier instruction as the last saves of the caller saved registers. In some cases, it might be
insn to prevent such scheduling. necessary to emit a barrier instruction as the last insn to prevent
such scheduling.
Also any insns generated here should have RTX_FRAME_RELATED_P(insn) = 1 Also any insns generated here should have RTX_FRAME_RELATED_P(insn) = 1
so that the debug info generation code can handle them properly. */ so that the debug info generation code can handle them properly. */
...@@ -1003,12 +1004,13 @@ direct_return () ...@@ -1003,12 +1004,13 @@ direct_return ()
&& stormy16_compute_stack_layout ().frame_size == 0); && stormy16_compute_stack_layout ().frame_size == 0);
} }
/* Called after register allocation to add any instructions needed for the /* Called after register allocation to add any instructions needed for
epilogue. Using a epilogue insn is favored compared to putting all of the the epilogue. Using a epilogue insn is favored compared to putting
instructions in the FUNCTION_PROLOGUE macro, since it allows the scheduler all of the instructions in the TARGET_ASM_FUNCTION_PROLOGUE macro,
to intermix instructions with the saves of the caller saved registers. In since it allows the scheduler to intermix instructions with the
some cases, it might be necessary to emit a barrier instruction as the last saves of the caller saved registers. In some cases, it might be
insn to prevent such scheduling. */ necessary to emit a barrier instruction as the last insn to prevent
such scheduling. */
void void
stormy16_expand_epilogue () stormy16_expand_epilogue ()
......
...@@ -2421,10 +2421,11 @@ typedef int CUMULATIVE_ARGS; ...@@ -2421,10 +2421,11 @@ typedef int CUMULATIVE_ARGS;
the return address. Hence returning from FUNCTION will return to whoever the return address. Hence returning from FUNCTION will return to whoever
called the current `thunk'. called the current `thunk'.
The effect must be as if FUNCTION had been called directly with the adjusted The effect must be as if @var{function} had been called directly
first argument. This macro is responsible for emitting all of the code for with the adjusted first argument. This macro is responsible for
a thunk function; `FUNCTION_PROLOGUE' and `FUNCTION_EPILOGUE' are not emitting all of the code for a thunk function;
invoked. TARGET_ASM_FUNCTION_PROLOGUE and TARGET_ASM_FUNCTION_EPILOGUE are
not invoked.
The THUNK_FNDECL is redundant. (DELTA and FUNCTION have already been The THUNK_FNDECL is redundant. (DELTA and FUNCTION have already been
extracted from it.) It might possibly be useful on some targets, but extracted from it.) It might possibly be useful on some targets, but
...@@ -2564,10 +2565,11 @@ typedef int CUMULATIVE_ARGS; ...@@ -2564,10 +2565,11 @@ typedef int CUMULATIVE_ARGS;
code to call function `__bb_trace_ret'. The assembler code should code to call function `__bb_trace_ret'. The assembler code should
only be output if the global compile flag `profile_block_flag' == only be output if the global compile flag `profile_block_flag' ==
2. This macro has to be used at every place where code for 2. This macro has to be used at every place where code for
returning from a function is generated (e.g. `FUNCTION_EPILOGUE'). returning from a function is generated
Although you have to write the definition of `FUNCTION_EPILOGUE' (e.g. `TARGET_ASM_FUNCTION_EPILOGUE'). Although you have to write
as well, you have to define this macro to tell the compiler, that the definition of `TARGET_ASM_FUNCTION_EPILOGUE' as well, you have
the proper call to `__bb_trace_ret' is produced. */ to define this macro to tell the compiler, that the proper call to
`__bb_trace_ret' is produced. */
/* #define FUNCTION_BLOCK_PROFILER_EXIT(FILE) */ /* #define FUNCTION_BLOCK_PROFILER_EXIT(FILE) */
/* A C statement or compound statement to save all registers, which may be /* A C statement or compound statement to save all registers, which may be
...@@ -2576,17 +2578,19 @@ typedef int CUMULATIVE_ARGS; ...@@ -2576,17 +2578,19 @@ typedef int CUMULATIVE_ARGS;
the assembler code can be concatenated with the string ID, to obtain a the assembler code can be concatenated with the string ID, to obtain a
unique lable name. unique lable name.
Registers or condition codes clobbered by `FUNCTION_PROLOGUE' or Registers or condition codes clobbered by
`FUNCTION_EPILOGUE' must be saved in the macros `FUNCTION_BLOCK_PROFILER', `TARGET_ASM_FUNCTION_PROLOGUE' or `TARGET_ASM_FUNCTION_EPILOGUE'
must be saved in the macros `FUNCTION_BLOCK_PROFILER',
`FUNCTION_BLOCK_PROFILER_EXIT' and `BLOCK_PROFILER' prior calling `FUNCTION_BLOCK_PROFILER_EXIT' and `BLOCK_PROFILER' prior calling
`__bb_init_trace_func', `__bb_trace_ret' and `__bb_trace_func' respectively. */ `__bb_init_trace_func', `__bb_trace_ret' and `__bb_trace_func'
respectively. */
/* #define MACHINE_STATE_SAVE(ID) */ /* #define MACHINE_STATE_SAVE(ID) */
/* A C statement or compound statement to restore all registers, including /* A C statement or compound statement to restore all registers, including
condition codes, saved by `MACHINE_STATE_SAVE'. condition codes, saved by `MACHINE_STATE_SAVE'.
Registers or condition codes clobbered by `FUNCTION_PROLOGUE' or Registers or condition codes clobbered by `TARGET_ASM_FUNCTION_PROLOGUE' or
`FUNCTION_EPILOGUE' must be restored in the macros `TARGET_ASM_FUNCTION_EPILOGUE' must be restored in the macros
`FUNCTION_BLOCK_PROFILER', `FUNCTION_BLOCK_PROFILER_EXIT' and `FUNCTION_BLOCK_PROFILER', `FUNCTION_BLOCK_PROFILER_EXIT' and
`BLOCK_PROFILER' after calling `__bb_init_trace_func', `__bb_trace_ret' and `BLOCK_PROFILER' after calling `__bb_init_trace_func', `__bb_trace_ret' and
`__bb_trace_func' respectively. */ `__bb_trace_func' respectively. */
...@@ -2720,7 +2724,8 @@ typedef int CUMULATIVE_ARGS; ...@@ -2720,7 +2724,8 @@ typedef int CUMULATIVE_ARGS;
stack slot. This default is right for most machines. The exceptions are stack slot. This default is right for most machines. The exceptions are
machines where it is impossible to execute instructions in the stack area. machines where it is impossible to execute instructions in the stack area.
On such machines, you may have to implement a separate stack, using this On such machines, you may have to implement a separate stack, using this
macro in conjunction with `FUNCTION_PROLOGUE' and `FUNCTION_EPILOGUE'. macro in conjunction with `TARGET_ASM_FUNCTION_PROLOGUE' and
`TARGET_ASM_FUNCTION_EPILOGUE'.
FP points to a data structure, a `struct function', which describes the FP points to a data structure, a `struct function', which describes the
compilation status of the immediate containing function of the function compilation status of the immediate containing function of the function
...@@ -4875,8 +4880,8 @@ do { \ ...@@ -4875,8 +4880,8 @@ do { \
To support optional call frame debugging information, you must also define To support optional call frame debugging information, you must also define
`INCOMING_RETURN_ADDR_RTX' and either set `RTX_FRAME_RELATED_P' on the `INCOMING_RETURN_ADDR_RTX' and either set `RTX_FRAME_RELATED_P' on the
prologue insns if you use RTL for the prologue, or call `dwarf2out_def_cfa' prologue insns if you use RTL for the prologue, or call `dwarf2out_def_cfa'
and `dwarf2out_reg_save' as appropriate from `FUNCTION_PROLOGUE' if you and `dwarf2out_reg_save' as appropriate from `TARGET_ASM_FUNCTION_PROLOGUE'
don't. if you don't.
Defined in svr4.h. */ Defined in svr4.h. */
/* #define DWARF2_DEBUGGING_INFO */ /* #define DWARF2_DEBUGGING_INFO */
...@@ -5210,25 +5215,6 @@ do { \ ...@@ -5210,25 +5215,6 @@ do { \
#pragma pack(push,<n>) and #pragma pack(pop). */ #pragma pack(push,<n>) and #pragma pack(pop). */
/* HANDLE_PRAGMA_PACK_PUSH_POP 1 */ /* HANDLE_PRAGMA_PACK_PUSH_POP 1 */
/* If defined, a C expression whose value is nonzero if IDENTIFIER with
arguments ARGS is a valid machine specific attribute for DECL. The
attributes in ATTRIBUTES have previously been assigned to DECL. */
/* #define VALID_MACHINE_DECL_ATTRIBUTE(DECL, ATTRIBUTES, IDENTIFIER, ARGS) */
/* If defined, a C expression whose value is nonzero if IDENTIFIER with
arguments ARGS is a valid machine specific attribute for TYPE. The
attributes in ATTRIBUTES have previously been assigned to TYPE. */
/* #define VALID_MACHINE_TYPE_ATTRIBUTE(TYPE, ATTRIBUTES, IDENTIFIER, ARGS) */
/* If defined, a C expression whose value is zero if the attributes on TYPE1
and TYPE2 are incompatible, one if they are compatible, and two if they are
nearly compatible (which causes a warning to be generated). */
/* #define COMP_TYPE_ATTRIBUTES(TYPE1, TYPE2) */
/* If defined, a C statement that assigns default attributes to newly defined
TYPE. */
/* #define SET_DEFAULT_TYPE_ATTRIBUTES(TYPE) */
/* Define this macro to control use of the character `$' in identifier names. /* Define this macro to control use of the character `$' in identifier names.
The value should be 0, 1, or 2. 0 means `$' is not allowed by default; 1 The value should be 0, 1, or 2. 0 means `$' is not allowed by default; 1
means it is allowed by default if `-traditional' is used; 2 means it is means it is allowed by default if `-traditional' is used; 2 means it is
......
...@@ -917,12 +917,13 @@ ...@@ -917,12 +917,13 @@
;; :: ;; ::
;; :::::::::::::::::::: ;; ::::::::::::::::::::
;; Called after register allocation to add any instructions needed for the ;; Called after register allocation to add any instructions needed for
;; prologue. Using a prologue insn is favored compared to putting all of the ;; the prologue. Using a prologue insn is favored compared to putting
;; instructions in the FUNCTION_PROLOGUE macro, since it allows the scheduler ;; all of the instructions in the TARGET_ASM_FUNCTION_PROLOGUE macro,
;; to intermix instructions with the saves of the caller saved registers. In ;; since it allows the scheduler to intermix instructions with the
;; some cases, it might be necessary to emit a barrier instruction as the last ;; saves of the caller saved registers. In some cases, it might be
;; insn to prevent such scheduling. ;; necessary to emit a barrier instruction as the last insn to prevent
;; such scheduling.
(define_expand "prologue" (define_expand "prologue"
[(const_int 1)] [(const_int 1)]
"" ""
...@@ -932,12 +933,13 @@ ...@@ -932,12 +933,13 @@
DONE; DONE;
}") }")
;; Called after register allocation to add any instructions needed for the ;; Called after register allocation to add any instructions needed for
;; epilogue. Using a epilogue insn is favored compared to putting all of the ;; the epilogue. Using a epilogue insn is favored compared to putting
;; instructions in the FUNCTION_EPILOGUE macro, since it allows the scheduler ;; all of the instructions in the TARGET_ASM_FUNCTION_EPILOGUE macro,
;; to intermix instructions with the restires of the caller saved registers. ;; since it allows the scheduler to intermix instructions with the
;; In some cases, it might be necessary to emit a barrier instruction as the ;; restires of the caller saved registers. In some cases, it might be
;; first insn to prevent such scheduling. ;; necessary to emit a barrier instruction as the first insn to
;; prevent such scheduling.
(define_expand "epilogue" (define_expand "epilogue"
[(const_int 2)] [(const_int 2)]
"" ""
......
...@@ -584,6 +584,16 @@ typedef union tree_node *tree; ...@@ -584,6 +584,16 @@ typedef union tree_node *tree;
#undef calloc #undef calloc
#undef strdup #undef strdup
#pragma GCC poison malloc realloc calloc strdup #pragma GCC poison malloc realloc calloc strdup
/* Old target macros that have moved to the target hooks structure. */
#pragma GCC poison ASM_OPEN_PAREN ASM_CLOSE_PAREN \
FUNCTION_PROLOGUE FUNCTION_EPILOGUE \
FUNCTION_END_PROLOGUE FUNCTION_BEGIN_EPILOGUE \
DECL_MACHINE_ATTRIBUTES COMP_TYPE_ATTRIBUTES INSERT_ATTRIBUTES \
VALID_MACHINE_DECL_ATTRIBUTE VALID_MACHINE_TYPE_ATTRIBUTE \
SET_DEFAULT_TYPE_ATTRIBUTES SET_DEFAULT_DECL_ATTRIBUTES \
MERGE_MACHINE_TYPE_ATTRIBUTES MERGE_MACHINE_DECL_ATTRIBUTES \
MD_INIT_BUILTINS MD_EXPAND_BUILTIN
#endif /* IN_GCC */ #endif /* IN_GCC */
/* Note: not all uses of the `index' token (e.g. variable names and /* Note: not all uses of the `index' token (e.g. variable names and
......
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