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]
Other format: [Raw text]

c/8189: the exe genereted for powerPC crach with -O2 and -fpic used


>Number:         8189
>Category:       c
>Synopsis:       the exe genereted for powerPC crach with -O2 and -fpic used
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 10 11:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     jean-philippe.perois@wanadoo.fr
>Release:        egcs-2.91.60 19981201 (egcs-1.1.1 release)
>Organization:
>Environment:
cross compileur on Solaris for powerPC:
GCC: (GNU) egcs-2.91.60 19981201 (egcs-1.1.1 release)
>Description:
in somme casse the -O2 flag create wrong ASM on PowerPC!
I don't now if it is correct in more ressante compileur!

In ASM file:
bl _GLOBAL_OFFSET_TABLE_@local-4
lhz 0,0(3)
mflr 9  => load the adress in registre 9...
[...]
lwz 9,gsb1_EtiquetteSapSelectionnee@got(9)    <= bug!
[...]
lwz 4,gsb1_EtiquetteRecSelectionnee@got(9)    <= re used here with bad registe value!!

=> It crach if you use the function in a program!

Can you tell me if it is redolve in more ressante release...
if so is it possible to now the pach neaded for this release?

if not did you nead more info?

Djip
>How-To-Repeat:
use the tar.gz fille it contain a small program.
use: xxx/gcc -S bug_00.s -O2 -fpic bug_00.c
to create the ASM file.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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