From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12262 invoked by alias); 30 Oct 2014 11:29:39 -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 12183 invoked by uid 48); 30 Oct 2014 11:29:34 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/63573] [5 Regression] libgo: ICE building libgo on powerpc-linux-gnu Date: Thu, 30 Oct 2014 11:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-10/txt/msg02400.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63573 --- Comment #5 from Martin Li=C5=A1ka --- Issue looks very similar, ICF identifies a pair of function which are transformed to thunk (with tail-call). Where: (gdb) call debug_gimple_stmt(stmt) # .MEM_3 =3D VDEF <.MEM_1(D)> encoding_json.error.pN25_encoding_json.encodeState.localalias.36 (d_2(D), e= rr); [tail call] and: #9 0x00000000102a315c in expand_expr (exp=3D0x3fffa79d3940, target=3D0x3fffaf8d0400, mode=3DVOIDmode, modifier=3DEXPAND_NORMAL) at ../../gcc/expr.h:382 382 return expand_expr_real (exp, target, mode, modifier, NULL, false); (gdb) call debug_tree(exp) > side-effects addressable protected fn unsigned SI size unit size align 32 symtab 0 alias set -1 canonical type 0x3fffafb60a80> constant arg 0 addressable asm_written used SI file ../../../../libgo/go/encoding/json/encode.go line 272 col 1 align 32 result (mem:SI (symbol_ref:SI ("encoding_json.error.pN25_encoding_json.encodeState.localalias.36") [flags 0x3] ) [0 S4 A8])>> arg 0 sizes-gimplified asm_written public unsigned SI size unit size align 32 symtab 16383 alias set 5 canonical type 0x3fffaf9e03f0> visited var def_stmt GIMPLE_NOP version 2 ptr-info 0x3fffa58b0c90> arg 1 unit size align 32 symtab 16383 alias set 28 canonical type 0x3fffaf8b6d98 fields pointer_to_this > addressable used DI file ../../../../libgo/go/encoding/json/decode.= go line 193 col 1 size unit size align 32 context (reg/v:DI 157 [ err ]) arg-type incoming-rtl (mem:DI (reg:SI 4 4) [0 S8 A8])>> (gdb) frame 1 (gdb) call debug_rtx(result) (reg/v:DI 157 [ err ]) Am I right that problem comes up from TREE_ADDRESSABLE flag set on arg 1 (e= rr)? I would appreciate any hint how should be thunk creation fixed. Thank you, Martin >>From gcc-bugs-return-465380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 30 11:50:26 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30901 invoked by alias); 30 Oct 2014 11:50:25 -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 30861 invoked by uid 48); 30 Oct 2014 11:50:21 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/63580] [5 Regression] ICE : error: invalid argument to gimple call Date: Thu, 30 Oct 2014 11:51: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-10/txt/msg02401.txt.bz2 Content-length: 823 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63580 --- Comment #4 from Martin Li=C5=A1ka --- diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 6f61f5c..89c96dc 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -2342,6 +2342,14 @@ cgraph_node::create_wrapper (cgraph_node *target) cgraph_edge *e =3D create_edge (target, NULL, 0, CGRAPH_FREQ_BASE); + tree arguments =3D DECL_ARGUMENTS (decl); + + while (arguments) + { + TREE_ADDRESSABLE (arguments) =3D false; + arguments =3D TREE_CHAIN (arguments); + } + expand_thunk (false, true); e->call_stmt_cannot_inline_p =3D true; Following patch fixed the issue, boostrap works without any regression. But I guess it's just a partial fix. There's very similar issue: PR63573. Thanks, Martin >>From gcc-bugs-return-465381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 30 11:51:42 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31945 invoked by alias); 30 Oct 2014 11:51:42 -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 31861 invoked by uid 48); 30 Oct 2014 11:51:38 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/63574] [5 Regression] ICE building libjava (segfault) on arm-linux-gnueabihf Date: Thu, 30 Oct 2014 11:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg02402.txt.bz2 Content-length: 436 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63574 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Martin Li=C5=A1ka --- Resolved. >>From gcc-bugs-return-465382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Oct 30 11:51:43 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32056 invoked by alias); 30 Oct 2014 11:51:43 -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 31901 invoked by uid 48); 30 Oct 2014 11:51:39 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/63664] ipa-icf pass fails with segfault Date: Thu, 30 Oct 2014 13:33: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.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_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-10/txt/msg02403.txt.bz2 Content-length: 492 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63664 Bug 63664 depends on bug 63574, which changed state. Bug 63574 Summary: [5 Regression] ICE building libjava (segfault) on arm-linux-gnueabihf https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63574 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED