From 1a05e8743e42d0b3203b30c6d02328fbb4ee4989 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Thu, 11 Apr 2002 15:04:38 +0000 Subject: [PATCH] cris.c (cris_override_options): Tweak error message for PIC not implemented. * 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. From-SVN: r52161 --- gcc/ChangeLog | 9 +++++++++ gcc/config/cris/cris.c | 2 +- gcc/config/cris/cris.h | 4 +++- gcc/config/cris/t-cris | 2 -- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 482ef8d2a083..f605e1ffd084 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2002-04-11 Hans-Peter Nilsson + + * 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 * except.c (add_ehl_entry): Allow duplicates after landing pad diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index ff0c52af008e..51f9ee9ffeb4 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -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; } diff --git a/gcc/config/cris/cris.h b/gcc/config/cris/cris.h index 21065a9f4625..8f89c820076b 100644 --- a/gcc/config/cris/cris.h +++ b/gcc/config/cris/cris.h @@ -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) \ diff --git a/gcc/config/cris/t-cris b/gcc/config/cris/t-cris index 5e7edf4d6d22..e79550b3881d 100644 --- a/gcc/config/cris/t-cris +++ b/gcc/config/cris/t-cris @@ -39,5 +39,3 @@ $(LIB2FUNCS_EXTRA): $(CRIS_LIB1CSRC) echo "#define L$$name" > tmp-$@ \ && echo '#include "$<"' >> tmp-$@ \ && mv -f tmp-$@ $@ - -TARGET_LIBGCC2_CFLAGS = -Dinhibit_libc -- 2.43.5