public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "su at cs dot ucdavis.edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/66168] New: ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677 Date: Fri, 15 May 2015 20:33:00 -0000 [thread overview] Message-ID: <bug-66168-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66168 Bug ID: 66168 Summary: ICE at -O3 in elimination_costs_in_insn, at reload1.c:3677 Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: su at cs dot ucdavis.edu Target Milestone: --- The following code causes an ICE when compiled with the current gcc trunk at -O3 on x86_64-linux-gnu in both 32-bit and 64-bit modes. This is a regression from 5.1.x. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=gcc-trunk COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/6.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix gcc version 6.0.0 20150515 (experimental) [trunk revision 223211] (GCC) $ $ gcc-trunk -O2 -c small.c $ gcc-5.1 -O3 -c small.c $ $ gcc-trunk -O3 -c small.c small.c: In function ‘fn1’: small.c:15:1: internal compiler error: in elimination_costs_in_insn, at reload1.c:3677 } ^ 0xa660dc elimination_costs_in_insn ../../gcc-trunk/gcc/reload1.c:3674 0xa669aa calculate_elim_costs_all_insns() ../../gcc-trunk/gcc/reload1.c:1671 0x95637e ira_costs() ../../gcc-trunk/gcc/ira-costs.c:2238 0x9503c6 ira_build() ../../gcc-trunk/gcc/ira-build.c:3459 0x948714 ira ../../gcc-trunk/gcc/ira.c:5253 0x948714 execute ../../gcc-trunk/gcc/ira.c:5545 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. $ ------------------------------- int a, b; void fn1 () { for (;;) { for (b = 0; b < 3; b++) { char e[2]; char f = e[1]; a ^= f ? 1 / f : 0; } } } >From gcc-bugs-return-486384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 21:14:13 2015 Return-Path: <gcc-bugs-return-486384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 351 invoked by alias); 15 May 2015 21:14:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 130988 invoked by uid 48); 15 May 2015 21:14:08 -0000 From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/66146] call_once not C++11-compliant on ppc64le Date: Fri, 15 May 2015 21:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: Message-ID: <bug-66146-4-RNphGNggTc@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-66146-4@http.gcc.gnu.org/bugzilla/> References: <bug-66146-4@http.gcc.gnu.org/bugzilla/> 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-05/txt/msg01224.txt.bz2 Content-length: 324 https://gcc.gnu.org/bugzilla/show_bug.cgi?idf146 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > Thanks, Martin. So maybe something like this: This happens on almost all non-x86 machines. I tested it on aarch64 and we had the same failure as powerpc.
next reply other threads:[~2015-05-15 20:33 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-05-15 20:33 su at cs dot ucdavis.edu [this message] 2015-05-16 11:22 ` [Bug rtl-optimization/66168] [6 Regression] " hjl.tools at gmail dot com 2015-05-18 2:41 ` thopre01 at gcc dot gnu.org 2015-05-18 9:33 ` thopre01 at gcc dot gnu.org 2015-05-19 5:07 ` thopre01 at gcc dot gnu.org 2015-05-19 10:22 ` thopre01 at gcc dot gnu.org 2015-06-24 5:24 ` thopre01 at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-66168-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).