From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19697 invoked by alias); 20 Jun 2005 14:35:20 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 19661 invoked by uid 22791); 20 Jun 2005 14:35:13 -0000 Received: from bethe.phy.uc.edu (HELO bethe.phy.uc.edu) (129.137.4.14) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 20 Jun 2005 14:35:13 +0000 Received: from [172.30.4.162] (zhivago.erc-wireless.uc.edu [172.30.4.162]) by bethe.phy.uc.edu (8.12.11/8.12.11) with ESMTP id j5KEZBC7018313; Mon, 20 Jun 2005 10:35:11 -0400 In-Reply-To: <878y159mhr.fsf@osv.topcon.com> References: <878y159mhr.fsf@osv.topcon.com> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <7a7540ae909461ad920621855369549d@physics.uc.edu> Content-Transfer-Encoding: 7bit Cc: gcc@gcc.gnu.org From: Andrew Pinski Subject: Re: How to replace -O1 with corresponding -f's? Date: Mon, 20 Jun 2005 14:35:00 -0000 To: Sergei Organov X-Spam-Score: -100 () USER_IN_WHITELIST X-SW-Source: 2005-06/txt/msg00902.txt.bz2 On Jun 20, 2005, at 9:38 AM, Sergei Organov wrote: > 2. The resulting assembly is different from what I get with -O1 and > doesn't contain the mis-optimization I'm trying to debug though it > doesn't seem to have anything to do with loops. For reference, the > code I'm trying to compile is: > > extern double const osv; > double const osv = 314314314; > double osvf() { return osv; } I don't see anything wrong with what it gives for -O0 and -O2. -- Pinski