This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SIZE_TYPE predefine not following CPU flags on embedded mips
> > > Am I going to always have to have mips-rtems and mips64-rtems
> > > toolsets? :(
> >
> > Definitely not.
>
> YEAH!
>
> For now, should I have them though?
>
Here you go. Now the only reason you should want it is to set defaults.
This is from the mips-3_4-rewrite-branch code but should apply fairly
cleanly to current mainline. Be careful about the multilib selection for
the t-file.
Caveat: I haven't really run a lot of testing on this :)
-eric
ps. the rest of the patch is removing elf64.h
--
Yeah, I used to play basketball...
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.246.2.6
diff -u -p -w -r1.246.2.6 config.gcc
--- config.gcc 9 Jan 2003 01:19:34 -0000 1.246.2.6
+++ config.gcc 9 Jan 2003 01:55:34 -0000
@@ -1856,28 +1856,26 @@ mips-*-elf* | mipsel-*-elf*)
tmake_file=mips/t-elf
;;
mips64-*-elf* | mips64el-*-elf*)
- tm_file="${tm_file} mips/elf64.h"
+ tm_file="${tm_file} mips/elf.h"
tmake_file=mips/t-elf
target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
;;
mips64vr-*-elf* | mips64vrel-*-elf*)
- tm_file="mips/vr.h ${tm_file} mips/elf64.h"
+ tm_file="mips/vr.h ${tm_file} mips/elf.h"
tm_defines="MIPS_ABI_DEFAULT=ABI_O64 MIPS_MARCH_CONTROLS_SOFT_FLOAT=1"
tmake_file=mips/t-vr
;;
mips64orion-*-elf* | mips64orionel-*-elf*)
- tm_file="${tm_file} mips/elforion.h mips/elf64.h"
- tmake_file=mips/t-elf
+ tm_file="${tm_file} mips/elforion.h mips/elf.h"
tmake_file=mips/t-elf
target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
;;
mips64orion-*-rtems*)
xm_defines=POSIX
- tm_file="${tm_file} mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h"
+ tm_file="${tm_file} mips/elforion.h mips/elf.h mips/rtems64.h rtems.h"
tmake_file="mips/t-elf t-rtems"
- tmake_file=mips/t-elf
target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
if test x$enable_threads = xyes; then
@@ -2818,7 +2816,7 @@ mips*-*-*)
;;
esac
case $tm_file in
- *mips/elf.h* | *mips/elf64.h*)
+ *mips/elf.h*)
tm_defines="OBJECT_FORMAT_ELF $tm_defines"
;;
esac