Problem with -O2 in gcc 2.95-2 on RS6000 AIX 4.3
Philippe Lucas
philippe.lucas@technologies-gid.com
Thu Feb 1 05:48:00 GMT 2001
Hi,
Excuse me for my poor English.
I found a problem during the generation of the GNU program wget 1.3.5 on
RS6000 AIX 4.3. After many tests,
i reduce the problem to the small program that i send you. It seems to be a
problem during optimisation phase.
The file bug.tar.Z which untar in BUG_RS6000 directory contains the files:
a.out
bug.c
bug.err
bug.i
bug.o
bug.s
All thoses files have been generated by the command:
gcc -v -save-temps -O2 bug.c 2>bug.err.
At the begining of bug.c you can see the listing of the gcc -dumpspecs.
This program contains 2 functions which differs by the line with the comment
CHANGE.
The 2 functions works fine with no optimisation or with -O optimisation.
With O2 optimisation, only the function sepstring_OK_WITH_O2_OPTIMISATION
works fine.
The same program woks fine with the same compiler version on Linux Redhat
6.2. I built it also on Linux.
If you need some other informations, i can send you.
Best regards.
PS: All the people who works on gcc does a great job.
Philippe Lucas
TECHNOLOGIES-GID
phlucas@technologies-gid.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug.tar.Z
Type: application/x-compress
Size: 57507 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20010201/9bd69920/attachment.bin>
More information about the Gcc-bugs
mailing list