From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4A20F385DC1F; Wed, 6 May 2020 14:39:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4A20F385DC1F From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug general/24498] 0.176: isn't LTO ready Date: Wed, 06 May 2020 14:39:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2020 14:39:20 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24498 --- Comment #19 from Mark Wielaard --- The following now works with current git master: $ export AR=3Dgcc-ar RANLIB=3Dgcc-ranlib NM=3Dgcc-nm $ autoreconf -f -v -i $ ./configure --enable-maintainer-mode CFLAGS=3D"-O2 -g -flto -flto-partition=3Dnone -Wno-error=3Dstack-usage=3D" CXXFLAGS=3D"-O2 -g -flto -flto-partition=3Dnone" $ make -j4 $ make check -j4 # TOTAL: 218 # PASS: 216 # SKIP: 2 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 The -flto-partition=3Dnone workaround is still needed issues with symbol versioning (even with the new gcc symver support we'll still get multiple defined symbols). The -Wno-error=3Dstack-usage=3D is needed for "linking" the various tools i= n src (they have -Wno-stack-usage=3D in src/Makefile.am, but it links with some c= ode in lib/ which doesn't...) --=20 You are receiving this mail because: You are on the CC list for the bug.=