This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Committed, cris.h: various unimportant stuff.
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 8 Mar 2003 11:11:51 -0500 (EST)
- Subject: Committed, cris.h: various unimportant stuff.
Flushing some local fixes. The "-$" hasn't been necessary for a long
time.
* config/cris/cris.h: Remove EGCS references.
(CPP_SPEC): Remove "-$".
(INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
Index: cris.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/cris/cris.h,v
retrieving revision 1.45
diff -p -c -r1.45 cris.h
*** cris.h 28 Jan 2003 21:32:24 -0000 1.45
--- cris.h 8 Mar 2003 16:00:51 -0000
***************
*** 1,5 ****
/* Definitions for GCC. Part of the machine description for CRIS.
! Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Contributed by Axis Communications. Written by Hans-Peter Nilsson.
This file is part of GCC.
--- 1,5 ----
/* Definitions for GCC. Part of the machine description for CRIS.
! Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Contributed by Axis Communications. Written by Hans-Peter Nilsson.
This file is part of GCC.
*************** extern const char *cris_elinux_stacksize
*** 115,131 ****
/* Also provide canonical vN definitions when user specifies an alias.
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 \
! "-$ -D__CRIS_ABI_version=2\
%{mtune=*:-D__tune_%* %{mtune=v*:-D__CRIS_arch_tune=%*}}\
%{mtune=etrax4:-D__tune_v3 -D__CRIS_arch_tune=3}\
%{mtune=etrax100:-D__tune_v8 -D__CRIS_arch_tune=8}\
--- 115,122 ----
/* Also provide canonical vN definitions when user specifies an alias.
Note that -melf overrides -maout. */
#define CPP_SPEC \
! "-D__CRIS_ABI_version=2\
%{mtune=*:-D__tune_%* %{mtune=v*:-D__CRIS_arch_tune=%*}}\
%{mtune=etrax4:-D__tune_v3 -D__CRIS_arch_tune=3}\
%{mtune=etrax100:-D__tune_v8 -D__CRIS_arch_tune=8}\
*************** enum reg_class {NO_REGS, ALL_REGS, LIM_R
*** 956,964 ****
struct cum_args {int regs;};
/* The regs member is an integer, the number of arguments got into
! registers so far, and lib is nonzero if init_cumulative_args was
! found to generate a call to a library function. */
! #define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, INDIRECT) \
((CUM).regs = 0)
#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED) \
--- 947,954 ----
struct cum_args {int regs;};
/* The regs member is an integer, the number of arguments got into
! registers so far. */
! #define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, FNDECL) \
((CUM).regs = 0)
#define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED) \
*************** struct cum_args {int regs;};
*** 1246,1253 ****
FIXME: Check and adjust for gcc-2.9x. */
#define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN) {}
! /* Functionality import from EGCS.
! Kludge to solve Axis-990219: Work around imperfection in
reload_load_address1:
(plus (sign_extend (mem:qi (reg))) (reg))
should be reloaded as (plus (reg) (reg)), not
--- 1236,1242 ----
FIXME: Check and adjust for gcc-2.9x. */
#define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN) {}
! /* Kludge to solve Axis-990219: Work around imperfection in
reload_load_address1:
(plus (sign_extend (mem:qi (reg))) (reg))
should be reloaded as (plus (reg) (reg)), not
*************** struct cum_args {int regs;};
*** 1255,1263 ****
There are no checks that reload_load_address_1 "reloads"
addresses correctly, so invalidness is not caught or
corrected.
! When the right thing happens, the "something_reloaded" kludge can
! be removed. The right thing does not appear to happen for
! EGCS CVS as of this date (above). */
#define LEGITIMIZE_RELOAD_ADDRESS(X, MODE, OPNUM, TYPE, IND_LEVELS, WIN) \
do \
--- 1244,1251 ----
There are no checks that reload_load_address_1 "reloads"
addresses correctly, so invalidness is not caught or
corrected.
! When the right thing happens in reload, the kludge can
! be removed; still not as of 2003-02-27. */
#define LEGITIMIZE_RELOAD_ADDRESS(X, MODE, OPNUM, TYPE, IND_LEVELS, WIN) \
do \
brgds, H-P