Commit fa5848c7 by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

cris.h: Remove EGCS references.

	* config/cris/cris.h: Remove EGCS references.
 	(CPP_SPEC): Remove "-$".
	(INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.

From-SVN: r63995
parent 4555be98
2003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
* config/cris/cris.h: Remove EGCS references.
(CPP_SPEC): Remove "-$".
(INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
2003-03-08 Neil Booth <neil@daikokuya.co.uk> 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
* config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
......
/* Definitions for GCC. Part of the machine description for CRIS. /* Definitions for GCC. Part of the machine description for CRIS.
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Contributed by Axis Communications. Written by Hans-Peter Nilsson. Contributed by Axis Communications. Written by Hans-Peter Nilsson.
This file is part of GCC. This file is part of GCC.
...@@ -115,17 +115,8 @@ extern const char *cris_elinux_stacksize_str; ...@@ -115,17 +115,8 @@ extern const char *cris_elinux_stacksize_str;
/* Also provide canonical vN definitions when user specifies an alias. /* Also provide canonical vN definitions when user specifies an alias.
Note that -melf overrides -maout. */ Note that -melf overrides -maout. */
/* The `-$' is here mostly due to the integrated preprocessor not
handling the builtin expansion of "#define __REGISTER_PREFIX__ $"
gracefully. This is slightly redundant although not incorrect.
We're quite alone defining REGISTER_PREFIX as "$" so it's unlikely
someone will fight for us. This year in the mountains.
Note that for -melinux and -mlinux, command-line -isystem options are
emitted both before and after the synthesized one. We can't remove all
of them: a %<isystem will only remove the first one and %<isystem*
will not do TRT. Those extra occurrences are harmless anyway. */
#define CPP_SPEC \ #define CPP_SPEC \
"-$ -D__CRIS_ABI_version=2\ "-D__CRIS_ABI_version=2\
%{mtune=*:-D__tune_%* %{mtune=v*:-D__CRIS_arch_tune=%*}}\ %{mtune=*:-D__tune_%* %{mtune=v*:-D__CRIS_arch_tune=%*}}\
%{mtune=etrax4:-D__tune_v3 -D__CRIS_arch_tune=3}\ %{mtune=etrax4:-D__tune_v3 -D__CRIS_arch_tune=3}\
%{mtune=etrax100:-D__tune_v8 -D__CRIS_arch_tune=8}\ %{mtune=etrax100:-D__tune_v8 -D__CRIS_arch_tune=8}\
...@@ -956,9 +947,8 @@ enum reg_class {NO_REGS, ALL_REGS, LIM_REG_CLASSES}; ...@@ -956,9 +947,8 @@ enum reg_class {NO_REGS, ALL_REGS, LIM_REG_CLASSES};
struct cum_args {int regs;}; struct cum_args {int regs;};
/* The regs member is an integer, the number of arguments got into /* The regs member is an integer, the number of arguments got into
registers so far, and lib is nonzero if init_cumulative_args was registers so far. */
found to generate a call to a library function. */ #define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, FNDECL) \
#define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT) \
((CUM).regs = 0) ((CUM).regs = 0)
#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED) \ #define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED) \
...@@ -1246,8 +1236,7 @@ struct cum_args {int regs;}; ...@@ -1246,8 +1236,7 @@ struct cum_args {int regs;};
FIXME: Check and adjust for gcc-2.9x. */ FIXME: Check and adjust for gcc-2.9x. */
#define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN) {} #define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN) {}
/* Functionality import from EGCS. /* Kludge to solve Axis-990219: Work around imperfection in
Kludge to solve Axis-990219: Work around imperfection in
reload_load_address1: reload_load_address1:
(plus (sign_extend (mem:qi (reg))) (reg)) (plus (sign_extend (mem:qi (reg))) (reg))
should be reloaded as (plus (reg) (reg)), not should be reloaded as (plus (reg) (reg)), not
...@@ -1255,9 +1244,8 @@ struct cum_args {int regs;}; ...@@ -1255,9 +1244,8 @@ struct cum_args {int regs;};
There are no checks that reload_load_address_1 "reloads" There are no checks that reload_load_address_1 "reloads"
addresses correctly, so invalidness is not caught or addresses correctly, so invalidness is not caught or
corrected. corrected.
When the right thing happens, the "something_reloaded" kludge can When the right thing happens in reload, the kludge can
be removed. The right thing does not appear to happen for be removed; still not as of 2003-02-27. */
EGCS CVS as of this date (above). */
#define LEGITIMIZE_RELOAD_ADDRESS(X, MODE, OPNUM, TYPE, IND_LEVELS, WIN) \ #define LEGITIMIZE_RELOAD_ADDRESS(X, MODE, OPNUM, TYPE, IND_LEVELS, WIN) \
do \ do \
......
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