From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33763 invoked by alias); 1 Oct 2015 08:02:33 -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 23112 invoked by uid 48); 1 Oct 2015 08:02:26 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/51726] LTO and attribute 'selectany' Date: Thu, 01 Oct 2015 08:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.6.3 X-Bugzilla-Keywords: lto, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: 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: cf_known_to_fail 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-10/txt/msg00010.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51726 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail|4.10.0 |5.0 --- Comment #7 from Richard Biener --- (In reply to Kai Tietz from comment #6) > Created attachment 36427 [details] > Suggested patch > > I will do some further testing with that patch, and later on send patch > upstream with a testcase for the common-case with selectany-attribute. > > It would be appreciated if you could test patch too. I believe you can skip adding the attribute after you handled it this way (unless other code literally looks for the attribute rather than its effect)