This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problem with -O2 in gcc 2.95-2 on RS6000 AIX 4.3
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Problem with -O2 in gcc 2.95-2 on RS6000 AIX 4.3
- From: "Philippe Lucas" <philippe dot lucas at technologies-gid dot com>
- Date: Thu, 1 Feb 2001 14:52:59 +0100
- Reply-To: "Philippe Lucas" <philippe dot lucas at technologies-gid dot com>
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
bug.tar.Z