From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15210 invoked by alias); 2 Feb 2014 15:25: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 15196 invoked by uid 48); 2 Feb 2014 15:25:31 -0000 From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/60030] New: [4.9 regression] ICE in simplify_subreg, at simplify-rtx.c:5903 Date: Sun, 02 Feb 2014 15:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: UNCONFIRMED 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg00071.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60030 Bug ID: 60030 Summary: [4.9 regression] ICE in simplify_subreg, at simplify-rtx.c:5903 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: schwab@linux-m68k.org Target: powerpc-*-* $ gcc/xgcc -Bgcc/ ../gcc/testsuite/c-c++-common/ubsan/overflow-1.c -Bpowerpc64-linux/32/libsanitizer/ -Bpowerpc64-linux/32/libsanitizer/ubsan/ -Lpowerpc64-linux/32/libsanitizer/ubsan/.libs -fno-diagnostics-show-caret -fdiagnostics-color=3Dnever -O0 -fsanitize=3Dsigned-integer-overflow -lm -m= 32 -o ./overflow-1.exe../gcc/testsuite/c-c++-common/ubsan/overflow-1.c: In functi= on =E2=80=98main=E2=80=99: ../gcc/testsuite/c-c++-common/ubsan/overflow-1.c:81:40: internal compiler error: in simplify_subreg, at simplify-rtx.c:5903 ../gcc/testsuite/c-c++-common/ubsan/overflow-1.c:12:29: note: in definition= of macro =E2=80=98CHECK=E2=80=99 ../gcc/testsuite/c-c++-common/ubsan/overflow-1.c:81:10: note: in expansion = of macro =E2=80=98FN1=E2=80=99 0x1054b22b simplify_subreg(machine_mode, rtx_def*, machine_mode, unsigned i= nt) ../../gcc/simplify-rtx.c:5902 0x1054b4df simplify_gen_subreg(machine_mode, rtx_def*, machine_mode, unsign= ed int) ../../gcc/simplify-rtx.c:6123 0x102b9abf operand_subword(rtx_def*, unsigned int, int, machine_mode) ../../gcc/emit-rtl.c:1442 0x102b9cbf operand_subword_force(rtx_def*, unsigned int, machine_mode) ../../gcc/emit-rtl.c:1455 0x1048412b expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_de= f*, int, optab_methods) ../../gcc/optabs.c:1813 0x102cf023 expand_shift_1 ../../gcc/expmed.c:2287 0x103a5b2f ubsan_expand_si_overflow_mul_check(gimple_statement_base*) ../../gcc/internal-fn.c:649 0x103a659b expand_internal_call(gimple_statement_base*) ../../gcc/internal-fn.c:883 0x101f2667 expand_call_stmt ../../gcc/cfgexpand.c:2188 0x101f2667 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3157 0x101f2667 expand_gimple_stmt ../../gcc/cfgexpand.c:3309 0x101f351f expand_gimple_basic_block ../../gcc/cfgexpand.c:5149 0x101f58ab gimple_expand_cfg ../../gcc/cfgexpand.c:5715 0x101f58ab execute ../../gcc/cfgexpand.c:5935 >>From gcc-bugs-return-442316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 02 15:32:37 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20123 invoked by alias); 2 Feb 2014 15:32: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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20074 invoked by uid 48); 2 Feb 2014 15:32:30 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/59469] [4.8/4.9 Regression] LLVM build failure with gcc LTO Date: Sun, 02 Feb 2014 15:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 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: 2014-02/txt/msg00073.txt.bz2 Content-length: 590 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59469 --- Comment #38 from Markus Trippelsdorf --- So maybe the following patch is enough: diff --git a/gcc/lto/lto-symtab.c b/gcc/lto/lto-symtab.c index f5f9d1318ee0..bdb536131707 100644 --- a/gcc/lto/lto-symtab.c +++ b/gcc/lto/lto-symtab.c @@ -57,7 +57,7 @@ lto_cgraph_replace_node (struct cgraph_node *node, } /* Merge node flags. */ - if (node->force_output) + if (node->force_output || node->forced_by_abi) cgraph_mark_force_output_node (prevailing_node); if (node->address_taken) {