From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88301 invoked by alias); 28 Apr 2015 16:01: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 88252 invoked by uid 48); 28 Apr 2015 16:01:29 -0000 From: "rth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/65913] Linking failure without -latomic Date: Tue, 28 Apr 2015 16:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: cc attachments.created 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-04/txt/msg02424.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65913 Richard Henderson changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rth at gcc dot gnu.org --- Comment #2 from Richard Henderson --- Created attachment 35416 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35416&action=edit proposed patch jwakely suggested on irc reverting the -alignment fake pointer for the integral type template. Note that there are weird targets that have non-power-of-two integral types: config/avr/avr-modes.def:FRACTIONAL_INT_MODE (PSI, 24, 3); Thankfully, avr doesn't also have atomic operations on this type, so the second part of fold_builtin_atomic_always_lock_free would fail. But I think we can also do better for non-integral types, so it's probably better to attack this inside the compiler.