diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2013-09-02 23:01:49 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2013-09-02 19:01:49 -0400 |
commit | a4f710a6578cea62b7ae7d7ec7f63b0d454972f3 (patch) | |
tree | f05c9cb70fc53cb5f980a6f50cd54d2536ef4cd6 /fixincludes/inclhack.def | |
parent | a64bbb3f8997b97c3f8c049ed7ff1090bf8ee863 (diff) | |
download | gcc-a4f710a6578cea62b7ae7d7ec7f63b0d454972f3.zip gcc-a4f710a6578cea62b7ae7d7ec7f63b0d454972f3.tar.gz gcc-a4f710a6578cea62b7ae7d7ec7f63b0d454972f3.tar.bz2 |
inclhack.def (aix_assert): New fix.
* inclhack.def (aix_assert): New fix.
* fixincl.x: Regenerate.
* tests/base/assert.h [AIX_ASSERT_CHECK]: New check.
From-SVN: r202192
Diffstat (limited to 'fixincludes/inclhack.def')
-rw-r--r-- | fixincludes/inclhack.def | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index c92170f..996356a 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -569,6 +569,20 @@ fix = { }; /* + * assert.h on AIX 7 redefines static_assert as _Static_assert without + * protecting C++. + */ +fix = { + hackname = aix_assert; + mach = "*-*-aix*"; + files = assert.h; + select = "#define[ \t]static_assert[ \t]_Static_assert"; + c_fix = format; + c_fix_arg = "#ifndef __cplusplus\n%0\n#endif"; + test_text = "#define static_assert _Static_assert"; +}; + +/* * complex.h on AIX 5 and AIX 6 define _Complex_I and I in terms of __I, * which only is provided by AIX xlc C99. */ |