From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30751 invoked by alias); 26 Mar 2003 14:16:04 -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 30623 invoked by uid 71); 26 Mar 2003 14:16:01 -0000 Date: Wed, 26 Mar 2003 14:18:00 -0000 Message-ID: <20030326141601.30622.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Erik Oosterom Subject: Re: optimization/10221: gcc -O9 will introduce wrong asembler? Reply-To: Erik Oosterom X-SW-Source: 2003-03/txt/msg01799.txt.bz2 List-Id: The following reply was made to PR optimization/10221; it has been noted by GNATS. From: Erik Oosterom To: steven@gcc.gnu.org, eoo@chess.nl, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Cc: Subject: Re: optimization/10221: gcc -O9 will introduce wrong asembler? Date: Wed, 26 Mar 2003 15:17:48 +0100 Hi Steven, Thanks for looking to the problem! The codes I did provided are the output of the compiler. (which is different) The source line in the preprocessed source is line 9087, this will be compiled (wrong). I shall try to make an simple example.. Best Regards, Erik steven@gcc.gnu.org wrote: > > Synopsis: gcc -O9 will introduce wrong asembler? > > State-Changed-From-To: open->feedback > State-Changed-By: steven > State-Changed-When: Wed Mar 26 14:02:34 2003 > State-Changed-Why: > Hi, > > Thanks for the problem report. Unfortunately, I > am unable to reproduce the bug with the code you > attached: > > 1) The RELEASE and DEBUG codes you talk about are > not in the preprocessed source. > 2) The code you provided seems to rely on other > compilation units, i.e. there are undefined > references at link time. > > Can you produce a smaller test case, or at least one > without external references? > > Oh, and I suppose you see this problem with -O3 as > well? The highest optimization level for GCC is -O3, > if you do -On, n>3, nothing extra happens. > > Greetz > Steven > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10221 -- Met vriendelijke groet, Erik Oosterom Chess embedded Technology Nieuwe Gracht 13/78 P.O.Box 5021 2000 CA Haarlem, The Netherlands Phone : +31-23-5 149 249 (indirect) Fax : +31-23-5 149 191 Web : http://www.chess.nl Email : mailto:erik.oosterom@chess.nl