This is the mail archive of the gcc@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: Unsuccessful build of gcc-2.95.1


The default behaviour of my R10k based irix6.5 systems is defined in
/etc/compiler.defaults
to be -DEFAULT:abi=n32:isa=mips4:proc=r10k 

You can generate  -mips3 -n32 compiler and binaries by:
- changing /etc/compiler.defaults
- using the following patch to set the gcc default to -mips3

--- gcc/config/mips/iris6.h.0	Thu Jun 24 15:50:31 1999
+++ gcc/config/mips/iris6.h	Thu Jun 24 15:56:20 1999
@@ -214,8 +214,9 @@
 
 /* ??? If no mabi=X option give, but a mipsX option is, then should depend
    on the mipsX option.  */
+/* If no mips[3,4] option given, give the appropriate default for mabi=X */
 #undef SUBTARGET_ASM_SPEC
-#define SUBTARGET_ASM_SPEC "%{!mabi*:-n32}"
+#define SUBTARGET_ASM_SPEC "%{!mabi*:-n32} %{!mips*: %{!mabi*:-mips3}
%{mabi=n32:-mips3} %{mabi=64:-mips4}}"
 
 /* Must pass -g0 to the assembler, otherwise it may overwrite our
    debug info with its own debug info. */


> -----Original Message-----
> From:	Lack Mr G M [SMTP:gml4410@ggr.co.uk]
> Sent:	Thursday, 2 September 1999 21:34
> To:	N8TM@AOL.COM
> Cc:	gcc@gcc.gnu.org; beyerj@sgi.com
> Subject:	Re: Unsuccessful build of gcc-2.95.1
> 
> N> >    This is for mips-sgi-irix6.5 (claimed successful).
> > >
> > >      The problem is in the configure stage.
> > >
> > >      The config/mh-irix6 tries to set "CC = cc -32" (to avoid n32/n64
> ABI
> > >  problems).
> > The lazy way is to set the environment variable CC='cc -n32' while using
> > MipsPro cc as a bootstrap compiler.  AFAIK this works for MipsPro
> versions
> > since 7.2.  Perhaps it's time to change a default configuration which
> caters
> > for the time before there was a working MipsPro compiler for n32/64.
> The
> > shoe probably is on the other foot now and 'cc -o32' may be less
> reliable.
> 
>    The stage1/xgcc is producing N32 mips-4 output, which fails to work
> when using the "cc -32" option in the mh-irix6 stub.  Mind you, I've
> just noticed you suggest using "cc -n32"   
> 
>    But I would still have a problem!  I have networked systems (this is
> what Unix is all about..) and I need to build something which can run on
> any Irix6.5 system (it is NFS mounted to all of them).  So mips-4
> binaries are out.  How do I get gcc to produce -o32/mips-2 and
> -n32/mips-3 output?  I have to link against libraries supplied by others
> (eg: Oracle), so can't expect n32 everywhere.
> 
> James Beyer wrote:
> > 
> > Can you send a "uname -a" for your machine?
> 
>    IRIX64 ukwsv100 6.5 04151556 IP27
> 
>    It's an O2000 with 32 R12k's


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