[MIPS][LS2][5/5] Support for native MIPS GCC

David Daney ddaney@avtrex.com
Tue Jul 8 20:52:00 GMT 2008


Maxim Kuvyrkov wrote:
> Richard Sandiford wrote:
>> Maxim Kuvyrkov <maxim@codesourcery.com> writes:
>>> 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
>>>         Kazu Hirata  <kazu@codesourcery.com>
>>>         Maxim Kuvyrkov  <maxim@codesourcery.com
>>>
>>>     * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
>>>     * config.host: Use driver-native.o and mips/x-native for 
>>> mips*-linux*.
>>>     * config/mips/linux.h (host_detect_local_cpu): Declare, add to
>>>     EXTRA_SPEC_FUNCTIONS.
>>>     (MARCH_MTUNE_NATIVE_SPECS): New macro.
>>>     (DRIVER_SELF_SPECS): Adjust.
>>>     * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
>>>     * config/mips/st.h, config/mips/t-st: New.
>>>     * config/mips/driver-native.c, config/mips/x-native: New.
>>
>> OK with the changes below.
> 
> The patch is fixed as per your changes.
> 

How was this tested?  I cannot bootstrap due to the following in stage2:

/home/ddaney/gccsvn/trunk-build/./prev-gcc/xgcc -B/home/ddaney/gccsvn/trunk-build/./prev-gcc/ -B/home/ddaney/gccsvn/trunk-install/mipsel-linux/bin/ -c  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wc++-compat -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros                            -Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../trunk/gcc -I../../trunk/gcc/. -I../../trunk/gcc/../include -I../../trunk/gcc/../libcpp/include -I/home/ddaney/mp/include -I/home/ddaney/mp/include -I../../trunk/gcc/../libdecnumber -I../../trunk/gcc/../libdecnumber/dpd -I../libdecnumber  -I. -I. -I../../trunk/gcc -I../../trunk/gcc/. -I../../trunk/gcc/../include -I../../trunk/gcc/../libcpp/include -I/home/ddaney/mp/include -I/home/ddaney/mp/include -I../../trunk/gcc/../libdecnumber -I../../trunk/gcc/../libdecnumber/dpd -I../libdecnumber ../../trunk/gcc/config/mips/driver-nat
ive.c
cc1: warnings being treated as errors
../../trunk/gcc/config/mips/driver-native.c:37: error: no previous prototype for 'host_detect_local_cpu'
make[3]: *** [driver-native.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gcj-dbtool.pod gcov.pod fsf-funding.pod jcf-dump.pod jv-convert.pod grmic.pod gcj.pod gc-analyze.pod gfdl.pod cpp.pod gij.pod gfortran.pod gcc.pod
make[3]: Leaving directory `/home/ddaney/gccsvn/trunk-build/gcc'
.
.
.

This is with trunk revision 137587 configured as:
../trunk/configure --prefix=/home/ddaney/gccsvn/trunk-install --target=mipsel-linux --build=mipsel-linux --host=mipsel-linux --with-gmp=/home/ddaney/mp --with-mpfr=/home/ddaney/mp --with-arch=sb1 --disable-java-awt --without-x --enable-__cxa_atexit --enable-languages=all

David Daney



More information about the Gcc-patches mailing list