Commit 0d569849 by Andreas Jaeger

function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE usage.

        * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
        usage.

        * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.

        * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.

        * system.h: Poison ALLOCATE_TRAMPOLINE.

        * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
        * system.h: Poison HANDLE_PRAGMA.

	In f/
        * lex.c (ffelex_hash_): Remove HANDLE_PRAGMA and
        HANDLE_GENERIC_PRAGMA dependend code, remove #if 0 code.
        (pragma_getc): Removed.
        (pragma_ungetc): Removed.

From-SVN: r67274
parent c79af3fa
2003-05-31 Andreas Jaeger <aj@suse.de>
* function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
usage.
* doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
* config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
* system.h: Poison ALLOCATE_TRAMPOLINE.
* doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
* system.h: Poison HANDLE_PRAGMA.
2003-05-31 Kazu Hirata <kazu@cs.umass.edu> 2003-05-31 Kazu Hirata <kazu@cs.umass.edu>
* doc/invoke.texi: Update dump file names. * doc/invoke.texi: Update dump file names.
...@@ -14,7 +28,7 @@ ...@@ -14,7 +28,7 @@
* toplev.c (flag_wrapv): Declare the variable with default false. * toplev.c (flag_wrapv): Declare the variable with default false.
(lang_independent_options): New option "-fwrapv" to set the above. (lang_independent_options): New option "-fwrapv" to set the above.
* fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2 * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
as x, when signed arithmetic overflow wraps around. as x, when signed arithmetic overflow wraps around.
(fold): Optimize "-A - B" as "-B - A" if overflow wraps around. (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
* loop.c (basic_induction_var): Ignore BIVs that rely on undefined * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
...@@ -2876,7 +2890,7 @@ Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz> ...@@ -2876,7 +2890,7 @@ Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
* config/mips/mips.c (mips_symbol_insns): Rework. Fix handling * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
of unaligned offsets. of unaligned offsets.
* config/mips/mips.c (mips_splittable_symbol_p): Fix handling * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
of SYMBOL_GENERAL. of SYMBOL_GENERAL.
2003-03-22 Richard Sandiford <rsandifo@redhat.com> 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
...@@ -3064,7 +3078,7 @@ Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz> ...@@ -3064,7 +3078,7 @@ Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
2003-02-02 Eric Christopher <echristo@redhat.com> 2003-02-02 Eric Christopher <echristo@redhat.com>
* config/mips/mips.c (mips_sign_extend): Remove. * config/mips/mips.c (mips_sign_extend): Remove.
* config/mips/mips-protos.h: Ditto. * config/mips/mips-protos.h: Ditto.
* config/mips/mips.md (movdi_internal2_extend): Remove. * config/mips/mips.md (movdi_internal2_extend): Remove.
(extendsidi2): Fix mode of convert_memory_address. (extendsidi2): Fix mode of convert_memory_address.
...@@ -3152,7 +3166,7 @@ Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz> ...@@ -3152,7 +3166,7 @@ Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
simple_memory_operand, double_memory_operand, mips_check_split, simple_memory_operand, double_memory_operand, mips_check_split,
mips_address_cost, pic_address_needs_scratch, mips16_gp_offset, mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
mips16_gp_offset_p, mips16_output_gp_offset, mips16_gp_offset_p, mips16_output_gp_offset,
mips16_constant_after_function_p, mips16_constant): Remove. mips16_constant_after_function_p, mips16_constant): Remove.
(call_insn_operand): Be more fussy about symbolic constants. (call_insn_operand): Be more fussy about symbolic constants.
Use register_operand. Use register_operand.
(move_operand): Use mips_symbolic_address_p to check symbolic (move_operand): Use mips_symbolic_address_p to check symbolic
...@@ -3380,7 +3394,7 @@ Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz> ...@@ -3380,7 +3394,7 @@ Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
* cnfig/mips/mips.md (reload_incc): Change destination prediate * cnfig/mips/mips.md (reload_incc): Change destination prediate
to fcc_register_operand. Remove misleading source constraint. to fcc_register_operand. Remove misleading source constraint.
Use mips_emit_fcc_reload. Use mips_emit_fcc_reload.
(reload_outcc): Duplicate reload_incc. (reload_outcc): Duplicate reload_incc.
2003-04-30 Diego Novillo <dnovillo@redhat.com> 2003-04-30 Diego Novillo <dnovillo@redhat.com>
......
/* Definitions of target machine for Mitsubishi D30V. /* Definitions of target machine for Mitsubishi D30V.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by Cygnus Solutions. Contributed by Cygnus Solutions.
...@@ -2024,25 +2024,6 @@ typedef struct machine_function GTY(()) ...@@ -2024,25 +2024,6 @@ typedef struct machine_function GTY(())
#define INITIALIZE_TRAMPOLINE(ADDR, FNADDR, STATIC_CHAIN) \ #define INITIALIZE_TRAMPOLINE(ADDR, FNADDR, STATIC_CHAIN) \
d30v_initialize_trampoline (ADDR, FNADDR, STATIC_CHAIN) d30v_initialize_trampoline (ADDR, FNADDR, STATIC_CHAIN)
/* A C expression to allocate run-time space for a trampoline. The expression
value should be an RTX representing a memory reference to the space for the
trampoline.
If this macro is not defined, by default the trampoline is allocated as a
stack slot. This default is right for most machines. The exceptions are
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
macro in conjunction with output_function_prologue () and
output_function_epilogue ().
FP points to a data structure, a `struct function', which describes the
compilation status of the immediate containing function of the function
which the trampoline is for. Normally (when `ALLOCATE_TRAMPOLINE' is not
defined), the stack slot for the trampoline is in the stack frame of this
containing function. Other allocation strategies probably must do something
analogous with this information. */
/* #define ALLOCATE_TRAMPOLINE(FP) */
/* Implementing trampolines is difficult on many machines because they have /* Implementing trampolines is difficult on many machines because they have
separate instruction and data caches. Writing into a stack location fails separate instruction and data caches. Writing into a stack location fails
to clear the memory in the instruction cache, so when the program jumps to to clear the memory in the instruction cache, so when the program jumps to
......
...@@ -4599,12 +4599,6 @@ the template was stored, the different address should be assigned to ...@@ -4599,12 +4599,6 @@ the template was stored, the different address should be assigned to
@var{addr}. If this macro is not defined, @var{addr} will be used for @var{addr}. If this macro is not defined, @var{addr} will be used for
function calls. function calls.
@findex ALLOCATE_TRAMPOLINE
@item ALLOCATE_TRAMPOLINE (@var{fp})
A C expression to allocate run-time space for a trampoline. The
expression value should be an RTX representing a memory reference to the
space for the trampoline.
@cindex @code{TARGET_ASM_FUNCTION_EPILOGUE} and trampolines @cindex @code{TARGET_ASM_FUNCTION_EPILOGUE} and trampolines
@cindex @code{TARGET_ASM_FUNCTION_PROLOGUE} and trampolines @cindex @code{TARGET_ASM_FUNCTION_PROLOGUE} and trampolines
If this macro is not defined, by default the trampoline is allocated as If this macro is not defined, by default the trampoline is allocated as
...@@ -4616,8 +4610,7 @@ and @code{TARGET_ASM_FUNCTION_EPILOGUE}. ...@@ -4616,8 +4610,7 @@ and @code{TARGET_ASM_FUNCTION_EPILOGUE}.
@var{fp} points to a data structure, a @code{struct function}, which @var{fp} points to a data structure, a @code{struct function}, which
describes the compilation status of the immediate containing function of describes the compilation status of the immediate containing function of
the function which the trampoline is for. Normally (when the function which the trampoline is for. The stack slot for the
@code{ALLOCATE_TRAMPOLINE} is not defined), the stack slot for the
trampoline is in the stack frame of this containing function. Other trampoline is in the stack frame of this containing function. Other
allocation strategies probably must do something analogous with this allocation strategies probably must do something analogous with this
information. information.
...@@ -8929,11 +8922,6 @@ This macro inhibits the usual method of using system header files in ...@@ -8929,11 +8922,6 @@ This macro inhibits the usual method of using system header files in
C++, which is to pretend that the file's contents are enclosed in C++, which is to pretend that the file's contents are enclosed in
@samp{extern "C" @{@dots{}@}}. @samp{extern "C" @{@dots{}@}}.
@findex HANDLE_PRAGMA
@item HANDLE_PRAGMA (@var{getc}, @var{ungetc}, @var{name})
This macro is no longer supported. You must use
@code{REGISTER_TARGET_PRAGMAS} instead.
@findex REGISTER_TARGET_PRAGMAS @findex REGISTER_TARGET_PRAGMAS
@findex #pragma @findex #pragma
@findex pragma @findex pragma
......
2003-05-31 Andreas Jaeger <aj@suse.de>
* lex.c (ffelex_hash_): Remove HANDLE_PRAGMA and
HANDLE_GENERIC_PRAGMA dependend code, remove #if 0 code.
(pragma_getc): Removed.
(pragma_ungetc): Removed.
2003-05-30 Roger Sayle <roger@eyesopen.com> 2003-05-30 Roger Sayle <roger@eyesopen.com>
* com.c (ffecom_init_0): Define built-in functions for tan and atan. * com.c (ffecom_init_0): Define built-in functions for tan and atan.
...@@ -92,7 +99,7 @@ ...@@ -92,7 +99,7 @@
2003-05-02 Nathan Sidwell <nathan@codesourcery.com> 2003-05-02 Nathan Sidwell <nathan@codesourcery.com>
* lex.c (ffelex_file_pop_): Adjust file_stack member use. * lex.c (ffelex_file_pop_): Adjust file_stack member use.
(ffelex_file_push_): Likewise. (ffelex_file_push_): Likewise.
(ffelex_hash_): Likewise. (ffelex_hash_): Likewise.
......
...@@ -997,22 +997,6 @@ ffelex_get_directive_line_ (char **text, FILE *finput) ...@@ -997,22 +997,6 @@ ffelex_get_directive_line_ (char **text, FILE *finput)
Returns the next character unhandled, which is always newline or EOF. */ Returns the next character unhandled, which is always newline or EOF. */
#if defined HANDLE_PRAGMA
/* Local versions of these macros, that can be passed as function pointers. */
static int
pragma_getc ()
{
return getc (finput);
}
static void
pragma_ungetc (arg)
int arg;
{
ungetc (arg, finput);
}
#endif /* HANDLE_PRAGMA */
static int static int
ffelex_hash_ (FILE *finput) ffelex_hash_ (FILE *finput)
{ {
...@@ -1041,42 +1025,6 @@ ffelex_hash_ (FILE *finput) ...@@ -1041,42 +1025,6 @@ ffelex_hash_ (FILE *finput)
&& ((c = getc (finput)) == ' ' || c == '\t' || c == '\n' && ((c = getc (finput)) == ' ' || c == '\t' || c == '\n'
|| c == EOF)) || c == EOF))
{ {
#if 0 /* g77 doesn't handle pragmas, so ignores them FOR NOW. */
static char buffer [128];
char * buff = buffer;
/* Read the pragma name into a buffer.
ISSPACE() may evaluate its argument more than once! */
while (((c = getc (finput)), ISSPACE(c)))
continue;
do
{
* buff ++ = c;
c = getc (finput);
}
while (c != EOF && ! ISSPACE (c) && c != '\n'
&& buff < buffer + 128);
pragma_ungetc (c);
* -- buff = 0;
#ifdef HANDLE_PRAGMA
if (HANDLE_PRAGMA (pragma_getc, pragma_ungetc, buffer))
goto skipline;
#endif /* HANDLE_PRAGMA */
#ifdef HANDLE_GENERIC_PRAGMAS
if (handle_generic_pragma (buffer))
goto skipline;
#endif /* !HANDLE_GENERIC_PRAGMAS */
/* Issue a warning message if we have been asked to do so.
Ignoring unknown pragmas in system header file unless
an explcit -Wunknown-pragmas has been given. */
if (warn_unknown_pragmas > 1
|| (warn_unknown_pragmas && ! in_system_header))
warning ("ignoring pragma: %s", token_buffer);
#endif /* 0 */
goto skipline; goto skipline;
} }
} }
......
...@@ -5844,17 +5844,12 @@ trampoline_address (function) ...@@ -5844,17 +5844,12 @@ trampoline_address (function)
/* Allocate run-time space for this trampoline /* Allocate run-time space for this trampoline
(usually in the defining function's stack frame). */ (usually in the defining function's stack frame). */
#ifdef ALLOCATE_TRAMPOLINE
tramp = ALLOCATE_TRAMPOLINE (fp);
#else
/* If rounding needed, allocate extra space /* If rounding needed, allocate extra space
to ensure we have TRAMPOLINE_SIZE bytes left after rounding up. */ to ensure we have TRAMPOLINE_SIZE bytes left after rounding up. */
#define TRAMPOLINE_REAL_SIZE \ #define TRAMPOLINE_REAL_SIZE \
(TRAMPOLINE_SIZE + (TRAMPOLINE_ALIGNMENT / BITS_PER_UNIT) - 1) (TRAMPOLINE_SIZE + (TRAMPOLINE_ALIGNMENT / BITS_PER_UNIT) - 1)
tramp = assign_stack_local_1 (BLKmode, TRAMPOLINE_REAL_SIZE, 0, tramp = assign_stack_local_1 (BLKmode, TRAMPOLINE_REAL_SIZE, 0,
fp ? fp : cfun); fp ? fp : cfun);
#endif
/* Record the trampoline for reuse and note it for later initialization /* Record the trampoline for reuse and note it for later initialization
by expand_function_end. */ by expand_function_end. */
if (fp != 0) if (fp != 0)
......
...@@ -57,7 +57,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -57,7 +57,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
HAVE_DECL_PUTC_UNLOCKED actually indicates whether or not the stdio HAVE_DECL_PUTC_UNLOCKED actually indicates whether or not the stdio
code is multi-thread safe by default. If it is set to 0, then do code is multi-thread safe by default. If it is set to 0, then do
not worry about using the _unlocked functions. not worry about using the _unlocked functions.
fputs_unlocked, fwrite_unlocked, and fprintf_unlocked are fputs_unlocked, fwrite_unlocked, and fprintf_unlocked are
extensions and need to be prototyped by hand (since we do not extensions and need to be prototyped by hand (since we do not
define _GNU_SOURCE). */ define _GNU_SOURCE). */
...@@ -99,7 +99,7 @@ extern int fprintf_unlocked PARAMS ((FILE *, const char *, ...)); ...@@ -99,7 +99,7 @@ extern int fprintf_unlocked PARAMS ((FILE *, const char *, ...));
#endif #endif
/* ??? Glibc's fwrite/fread_unlocked macros cause /* ??? Glibc's fwrite/fread_unlocked macros cause
"warning: signed and unsigned type in conditional expression". */ "warning: signed and unsigned type in conditional expression". */
#undef fread_unlocked #undef fread_unlocked
#undef fwrite_unlocked #undef fwrite_unlocked
...@@ -641,7 +641,7 @@ typedef char _Bool; ...@@ -641,7 +641,7 @@ typedef char _Bool;
FUNCTION_BLOCK_PROFILER_EXIT MACHINE_STATE_SAVE \ FUNCTION_BLOCK_PROFILER_EXIT MACHINE_STATE_SAVE \
MACHINE_STATE_RESTORE SCCS_DIRECTIVE SECTION_ASM_OP \ MACHINE_STATE_RESTORE SCCS_DIRECTIVE SECTION_ASM_OP \
ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL ASM_OUTPUT_INTERNAL_LABEL \ ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL ASM_OUTPUT_INTERNAL_LABEL \
OBJC_PROLOGUE OBJC_PROLOGUE ALLOCATE_TRAMPOLINE HANDLE_PRAGMA
/* Hooks that are no longer used. */ /* Hooks that are no longer used. */
#pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \ #pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \
......
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