This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: config/mips/x-mips -lmld and linux [bug]


[ Please drop egcs from any discussion of this patch. ] 

> egcs-1.1.1 is misdefining CLIB in gcc/Makefile when doing a make
> bootstrap on mips-unknown-linux-gnu.  

When I first looked at it last week, I came to the conclusion that MIPS
support in EGCS for Linux was a hoax.  You could probably graft this
patch into 1.1.1 pretty easily:

	http://www.cygnus.com/ml/egcs-patches/1998-Dec/0052.html

You will probably also need to patch that patch with a patch like this
untested one making its debut on egcs-patches right now:

* configure.in: Support mips-linux in either endianness.



Index: configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.185
diff -u -p -r1.185 configure.in
--- configure.in        1998/12/04 00:32:32     1.185
+++ configure.in        1998/12/07 01:32:15
@@ -2281,10 +2281,13 @@ changequote([,])dnl
                fixincludes=fixinc.wrap
                tmake_file=t-netbsd
                ;;
-       mipsel-*-linux*)                        # Little endian Linux MIPS
+       mips*-*-linux*)                         # Linux MIPS, either endian.
                xmake_file=x-linux
                xm_file="xm-siglist.h ${xm_file}"
-               tm_file="mips/elfl.h mips/linux.h"
+               case $machine in
+                       mipsel-*)  tm_file="mips/elfl.h mips/linux.h" ;;
+                       *)         tm_file="mips/elf.h" ;;
+               esac
                extra_parts="crtbegin.o crtend.o"
                gnu_ld=yes
                gas=yes



> the offending lib is coming from /gcc/config/mips/x-mips:
> 
> # -lmld is so we can link collect2 running native.
> # -lmalloc is supposed to be faster than the normal malloc
> CLIB            = -lmld

And things like this support my hoax theory...

> commenting that chunk of gcc/Makefile gets farther along in the build.
> (perhaps all the way, but i'm still many hours from seeing that...)

With the first patch, EGCS snapshots would bootstrap on the target mentioned
in the above URL.

Enjoy.
RJL


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]