summaryrefslogtreecommitdiff
path: root/gcc/config/cris
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-11 15:04:38 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2002-04-11 15:04:38 +0000
commit0fb176ea625b9a8b36b71ca7d8ac0fb1867a5e0d (patch)
tree98aec03082c2663900a4fe589a8f05babf0927e3 /gcc/config/cris
parent89cad2afd46604e93d494b6a9f5368bf4351cfbd (diff)
downloadgcc-0fb176ea625b9a8b36b71ca7d8ac0fb1867a5e0d.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52161 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/cris')
-rw-r--r--gcc/config/cris/cris.c2
-rw-r--r--gcc/config/cris/cris.h4
-rw-r--r--gcc/config/cris/t-cris2
3 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c
index ff0c52af008..51f9ee9ffeb 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 21065a9f462..8f89c820076 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 5e7edf4d6d2..e79550b3881 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