From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5152 invoked by alias); 10 Oct 2002 18:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 5127 invoked by uid 71); 10 Oct 2002 18:06:00 -0000 Resent-Date: 10 Oct 2002 18:06:00 -0000 Resent-Message-ID: <20021010180600.5126.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, jean-philippe.perois@fr.thalesgroup.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, jean-philippe.perois@wanadoo.fr Received: (qmail 3474 invoked by uid 61); 10 Oct 2002 18:01:55 -0000 Message-Id: <20021010180155.3473.qmail@sources.redhat.com> Date: Thu, 10 Oct 2002 11:06:00 -0000 From: jean-philippe.perois@wanadoo.fr Reply-To: jean-philippe.perois@wanadoo.fr To: gcc-gnats@gcc.gnu.org Cc: jean-philippe.perois@fr.thalesgroup.com X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify: jean-philippe.perois@fr.thalesgroup.com Subject: c/8189: the exe genereted for powerPC crach with -O2 and -fpic used X-SW-Source: 2002-10/txt/msg00391.txt.bz2 List-Id: >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: