This is the mail archive of the gcc-bugs@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]

Problem with -O2 in gcc 2.95-2 on RS6000 AIX 4.3


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


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