From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65196 invoked by alias); 23 Jul 2015 09:08:09 -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 65150 invoked by uid 48); 23 Jul 2015 09:08:05 -0000 From: "glaubitz at physik dot fu-berlin.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66930] [5 Regression]: gengtype.c is miscompiled during stage2 Date: Thu, 23 Jul 2015 09:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glaubitz at physik dot fu-berlin.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 2015-07/txt/msg01962.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66930 --- Comment #9 from John Paul Adrian Glaubitz --- (In reply to Kazumoto Kojima from comment #8) > (In reply to John Paul Adrian Glaubitz from comment #7) > > What do you mean? Using -O1 will trigger all kinds of bugs? Or is it rather > > about PR target/66358? > > Just my 2 cents. Even on the primary targets, bootstrap with other > than '-g -O2' are not so well tested. Ah, I didn't know that. Really interesting fact! > Most packages are built with -O2, aren't they? They are, true. > After all, -O1 should work but not safer than -O2, > IMO. O2 does many optimizations, and some of them might cause bug. > OTOH, some of them simplify the intermediate code. With -O1, we could > see highly complex intermediate code in some cases and they might cause > problem. We have just seen an example in this PR. I agree and, as I said, I already asked Matthias to revert to -O2. Let's see how far we'll get this time. My board is still building. Adrian