OSDN Git Service

* config/cris/cris.c (cris_override_options): Tweak error message
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Apr 2002 15:04:38 +0000 (15:04 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Apr 2002 15:04:38 +0000 (15:04 +0000)
for PIC not implemented.

* config/cris/cris.h: Tweak comments related to parameter-passing.

* t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52161 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/cris/cris.c
gcc/config/cris/cris.h
gcc/config/cris/t-cris

index 482ef8d..f605e1f 100644 (file)
@@ -1,3 +1,12 @@
+2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
+
+       * config/cris/cris.c (cris_override_options): Tweak error message
+       for PIC not implemented.
+
+       * config/cris/cris.h: Tweak comments related to parameter-passing.
+
+       * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
+
 2002-04-10  Richard Henderson  <rth@redhat.com>
 
        * except.c (add_ehl_entry): Allow duplicates after landing pad
index ff0c52a..51f9ee9 100644 (file)
@@ -2541,7 +2541,7 @@ cris_override_options ()
         further errors.  */
       if (! TARGET_LINUX)
        {
-         error ("-fPIC not supported in this configuration");
+         error ("-fPIC and -fpic are not supported in this configuration");
          flag_pic = 0;
        }
 
index 21065a9..8f89c82 100644 (file)
@@ -67,6 +67,7 @@ Boston, MA 02111-1307, USA.  */
 #define CRIS_PLT_GOTOFFSET_SUFFIX ":PLTG"
 #define CRIS_PLT_PCOFFSET_SUFFIX ":PLT"
 
+/* If you tweak this, don't forget to check cris_expand_builtin_va_arg.  */
 #define CRIS_FUNCTION_ARG_SIZE(MODE, TYPE)     \
   ((MODE) != BLKmode ? GET_MODE_SIZE (MODE)    \
    : (unsigned) int_size_in_bytes (TYPE))
@@ -936,7 +937,8 @@ enum reg_class {NO_REGS, ALL_REGS, LIM_REG_CLASSES};
   ? 1 : 0)
 
 /* Structs may be passed by value, but they must not be more than 8
-   bytes long.  */
+   bytes long.  If you tweak this, don't forget to adjust
+   cris_expand_builtin_va_arg.  */
 #define FUNCTION_ARG_PASS_BY_REFERENCE(CUM, MODE, TYPE, NAMED)         \
  (MUST_PASS_IN_STACK (MODE, TYPE)                                      \
   || CRIS_FUNCTION_ARG_SIZE (MODE, TYPE) > 8)                          \
index 5e7edf4..e79550b 100644 (file)
@@ -39,5 +39,3 @@ $(LIB2FUNCS_EXTRA): $(CRIS_LIB1CSRC)
        echo "#define L$$name" > tmp-$@ \
        && echo '#include "$<"' >> tmp-$@ \
        && mv -f tmp-$@ $@
-
-TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc