This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: gcc 2.7-b19 on gnu-win32 b19 generating bad asm


On 29-Jul-1998, Sam Holden <sholden@pgrad.cs.usyd.edu.au> wrote:
> Fergus Henderson writes:
> >GNU C version 2.7-b19 on gnu-win32 version b19.1 (intel x86)
> >generates bad assembler for the following program.  The program
> >(cut down from C code automatically generated by the Mercury compiler)
> >is not strictly conforming, but even so, the generated assembler
> >is pretty nonsensical.  This worked fine in b18.
> >
> >To reproduce the problem, compile the following program with `gcc -O2 -S'.
...
> Of course if it really did work with b18 then I will be completely wrong.

Yes, it really did work with b18.

> Also if gcc has been patched on cygwin32 I'll be wrong. But anyway...
...
> Using -O2 to me is a lot risky since my docs say :
> 
> Users of gcc 2.7.0 thru 2.7.2 should note that there is a bug in -O2 on
> these. Specifically, strength reduction doesn't work.

That wasn't the problem here.

BTW, the bug I reported has indeed been fixed in egcs 1.0.2.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3        |     -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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