From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26531 invoked by alias); 19 Aug 2002 11:56:03 -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 26512 invoked by uid 71); 19 Aug 2002 11:56:02 -0000 Resent-Date: 19 Aug 2002 11:56:02 -0000 Resent-Message-ID: <20020819115602.26511.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Horst.Lehser@hightec-rt.com Received: (qmail 21266 invoked by uid 61); 19 Aug 2002 11:49:16 -0000 Message-Id: <20020819114916.21265.qmail@sources.redhat.com> Date: Mon, 19 Aug 2002 05:26:00 -0000 From: Horst.Lehser@hightec-rt.com Reply-To: Horst.Lehser@hightec-rt.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/7632: gcc 3.2 for PowerPC: instruction scheduling ignores dependency in variable asignments X-SW-Source: 2002-08/txt/msg00376.txt.bz2 List-Id: >Number: 7632 >Category: optimization >Synopsis: gcc 3.2 for PowerPC: instruction scheduling ignores dependency in variable asignments >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon Aug 19 04:56:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Horst Lehser >Release: unknown-1.0 >Organization: >Environment: >Description: the following C source will generate incorrect code double a; double foo(void) { ((int *)&a)[1] += 5; return; } Generated assembler foo: lis %r3,a+4@ha lis %r5,a@ha lwz %r4,a+4@l(%r3) lfd %f1,a@l(%r5) /* a not modified yet */ addi %r0,%r4,10 stw %r0,a+4@l(%r3) blr >How-To-Repeat: compile the following code with gcc -O3 -S double a; double foo(void) { ((int *)&a)[1] += 10; return a; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: