From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25052 invoked by alias); 13 Jan 2015 10:24:00 -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 25004 invoked by uid 48); 13 Jan 2015 10:23:56 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/64307] [5 Regression] ICE: verify_gimple failed: invalid argument to gimple call with -fPIC -fipa-icf Date: Tue, 13 Jan 2015 10:24: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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority 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-01/txt/msg00934.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64307 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 --- Comment #4 from Richard Biener --- Init called for 2 items (100.00%). false returned: 'Unknown TREE code reached' (compare_operand:480) false returned: 'memory operands are different' (compare_gimple_assign:785) different statement for code: GIMPLE_ASSIGN (compare_bb:638): _2 = REALPART_EXPR ; _2 = REALPART_EXPR ; false returned: '' (equals_private:537) surely latent (the above is without -fPIC). Index: gcc/ipa-icf-gimple.c =================================================================== --- gcc/ipa-icf-gimple.c (revision 219520) +++ gcc/ipa-icf-gimple.c (working copy) @@ -448,6 +448,8 @@ func_checker::compare_operand (tree t1, return return_with_debug (ret); } + case IMAGPART_EXPR: + case REALPART_EXPR: case ADDR_EXPR: { x1 = TREE_OPERAND (t1, 0); makes them compare equal, but still no transform is done, even w/o -fPIC. Note BIT_FIELD_REF handling is completely broken: case BIT_FIELD_REF: { ret = compare_decl (t1, t2); return return_with_debug (ret); } ???