stdatomic.h broken on GCC-5.4.0 (error: request for member ‘__val’ in something not a structure or union)

Corinna Vinschen vinschen@redhat.com
Thu Feb 23 10:17:00 GMT 2017


On Feb 23 08:13, Sebastian Huber wrote:
> This file worked before GCC shipped its own stdatomic.h. You should use the
> GCC provided stdatomic.h. Maybe we should remove the stdatomic.h from
> Newlib.

We should continue to provide it for older GCC versions.  We could
do something like

  #if __GNUC_PREREQ__(X,Y)
  #undef _STDATOMIC_H_
  #include_next <stdatomic.h>
  #else
  [rest of our own stdatomic.h]
  #endif

X.Y would be the 1st gcc version providing its own stdatomic.h


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20170223/a447b9b9/attachment.sig>


More information about the Newlib mailing list