]> Savannah Git Hosting - gnulib.git/commit
stdalign: port to tcc + glibc
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Mar 2021 08:47:19 +0000 (00:47 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Mar 2021 08:49:59 +0000 (00:49 -0800)
commit3c55969da66ccb9e6c0d045261a246254ca4494c
tree7429d8bd346ca40e47c065e708398d0162ef0fce
parent7c748055361ce5e9400d4dd460df0b84c735eff4
stdalign: port to tcc + glibc

* lib/stdalign.in.h (_Alignas): Do not define using __attribute__
if __attribute__ is defined as a macro, as __attribute__ surely a
no-op in that case and this is an area where __attribute__ cannot
simply be ignored.
* m4/stdalign.m4 (gl_STDALIGN_H): Include <stdint.h> so that
it #defines __attribute__(x) to nothing on glibc-based systems
when non-GNU-C-compatible compilers are used.
This exposes a bug in Tiny C Compiler 0.9.27’s implementation
of _Alignas on glibc platforms.
ChangeLog
lib/stdalign.in.h
m4/stdalign.m4