From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 478 invoked by alias); 30 Dec 2014 15:44:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32163 invoked by uid 48); 30 Dec 2014 15:44:27 -0000 From: "colin.pitrat+gcc at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/64442] -O1 modify output of a simple computation with rounding Date: Tue, 30 Dec 2014 15:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: colin.pitrat+gcc at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg02952.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64442 Colin Pitrat changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #4 from Colin Pitrat --- OK thank you, sorry for the bothering ! In the mean time I also discovered -Og that appeared in gcc 4.8, that provides optimization compatible with debugging and that have the same behavior. This allows me to have the same result with the release and the debug build, which is what was the issue for me. I'm still surprised by the fact that -Og or -O1 seems to be more than just the list of -f flags it activates, as providing only them doesn't trigger this same behaviour. I couldn't find another responsible flag in the difference I found in the output of --help=warnings,target,params,c or common Closing this bug as invalid. Regards, Colin