aboutsummaryrefslogtreecommitdiff
path: root/fixincludes/inclhack.def
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2013-09-02 23:01:49 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2013-09-02 19:01:49 -0400
commita4f710a6578cea62b7ae7d7ec7f63b0d454972f3 (patch)
treef05c9cb70fc53cb5f980a6f50cd54d2536ef4cd6 /fixincludes/inclhack.def
parenta64bbb3f8997b97c3f8c049ed7ff1090bf8ee863 (diff)
downloadgcc-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.def14
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.
*/