www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/03/03/16:21:53

Sender: nate AT cartsys DOT com
Message-ID: <36DDA6AB.F06CDFDE@cartsys.com>
Date: Wed, 03 Mar 1999 13:16:27 -0800
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.08 [en] (X11; I; Linux 2.2.1 i586)
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: egcs-1.1.X (Was: Re: Problems with collect2 in egcs-1.1.1 and 1.1.2preX)
References: <199903022019 DOT UAA71690 AT out5 DOT ibm DOT net> (snowball3 AT usa DOT net) <B0000078201 AT stargate DOT astr DOT lu DOT lv>
Reply-To: djgpp-workers AT delorie DOT com

Andris Pavenis wrote:
> 
> On 2 Mar 99, at 15:23, DJ Delorie wrote:
> 
> >
> > > Looking at the configure.in in egcs, I noticed just above *-pc-
> > > msdosdjgpp is *-msdos-go32. Would it be OK to delete the entries for
> > > *-msdos-go32 since *-pc-msdosdjgpp is the preferred triplet?
> >
> > No.  You may issue a warning for those cases, though.
> >
> > The current official triplet is i586-pc-msdosdjgpp - it's the only one
> > that works right for both gcc and binutils.
> >
> > But, others may still be using other variants in specific cases.
> >
> 
> I don't need  target  i[34567]-pc-go32. For me i[34567]-pc-msdosdjgpp is
> enough.
> 
> config-guess detects DJGPP as i386-pc-msdosdjgpp for all
> i[3456]86. I override target (--target=i586-pc-msdosdjgpp) when I built egcs.
> One posible problem is that then compiler options defaults to
> -march=pentium -mcpu=pentium. It may seem to be dangerous but:
[snip]

I actually can't imagine any differences.  I don't have a Pentium manual
here to check but AFAIK only a few instructions were added between 386
and Pentium, and I doubt GCC generates any of them:

invlpg (for system software only)
cmpxchg
cmpxchg8 (I envy the compiler that can use them)
cpuid (ha!!)

I also looked at the egcs 1.1.1 source in config/i386, and didn't see
any arch=pentium dependencies.  So it looks like it's safe for current
versions.

Of course, that won't necessarily be true in the future.
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019