From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29369 invoked by alias); 26 Jan 2015 14:39:22 -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 29330 invoked by uid 48); 26 Jan 2015 14:39:13 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/64801] New: [5 Regression] kernel build failure due to ICF Date: Mon, 26 Jan 2015 14:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: trippels 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: 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/msg02885.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64801 Bug ID: 64801 Summary: [5 Regression] kernel build failure due to ICF Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org CC: marxin at gcc dot gnu.org Created attachment 34574 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34574&action=edit unreduced testcase Seen on x86_64 with kernel's defconfig. ... CC init/version.o LD init/built-in.o drivers/built-in.o:psmouse-base.c:function psmouse_extensions: error: undefined reference to 'fsp_detect' -fno-ipa-icf "fixes" the issue. markus@x4 tmp % cat psmouse-base.i int a; int elantech_detect (void) { return -38; } inline int fsp_detect (void) { return -38; } void psmouse_extensions (void) { int (*b)() = fsp_detect; a = b (); } markus@x4 tmp % gcc -c -O2 psmouse-base.i markus@x4 tmp % nm psmouse-base.o| grep fsp_detect U fsp_detect