[Bug libstdc++/65913] Linking failure without -latomic

rth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 28 16:01:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65913

Richard Henderson <rth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu.org

--- Comment #2 from Richard Henderson <rth at gcc dot gnu.org> ---
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.



More information about the Gcc-bugs mailing list