cris.h: Remove EGCS references.
authorHans-Peter Nilsson <hp@bitrange.com>
Sat, 8 Mar 2003 16:10:30 +0000 (16:10 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sat, 8 Mar 2003 16:10:30 +0000 (16:10 +0000)
* config/cris/cris.h: Remove EGCS references.
  (CPP_SPEC): Remove "-$".
(INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.

From-SVN: r63995

gcc/ChangeLog
gcc/config/cris/cris.h

index 6cb8d160e38ca509f79789e7ad0c34f9c7043473..2de9a30b60c1922cc14fecc4b36e1f7dffc76b93 100644 (file)
@@ -1,3 +1,9 @@
+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>
 
        * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
index 78e62d11adef9c32e34b004a0cace280e179eb30..200edabd92d9e430ee5666edd679e5b92761b59c 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
 This file is part of GCC.
@@ -115,17 +115,8 @@ extern const char *cris_elinux_stacksize_str;
 /* 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\
+ "-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}\
@@ -956,9 +947,8 @@ enum reg_class {NO_REGS, ALL_REGS, LIM_REG_CLASSES};
 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)     \
+   registers so far.  */
+#define INIT_CUMULATIVE_ARGS(CUM, FNTYPE, LIBNAME, FNDECL)       \
  ((CUM).regs = 0)
 
 #define FUNCTION_ARG_ADVANCE(CUM, MODE, TYPE, NAMED)           \
@@ -1246,8 +1236,7 @@ struct cum_args {int regs;};
    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
+/* 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
@@ -1255,9 +1244,8 @@ struct cum_args {int regs;};
    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).  */
+    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                                                                   \