[gcc(refs/users/marxin/heads/marxin-gcc-benchmark-branch)] work-around system header namespace pollution
Martin Liska
marxin@gcc.gnu.org
Mon Mar 30 10:25:51 GMT 2020
https://gcc.gnu.org/g:46788c65f93c61a06764b284b4656dd9024e88d2
commit 46788c65f93c61a06764b284b4656dd9024e88d2
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Feb 27 13:34:44 2020 -0300
work-around system header namespace pollution
Including limits.h on vxworks pollutes the global namespace with SH
and many other platform names; work around it.
for gcc/testsuite/ChangeLog
* gcc.target/aarch64/vect-mull.x (SH): Undefine.
Diff:
---
gcc/testsuite/ChangeLog | 4 ++++
gcc/testsuite/gcc.target/aarch64/vect-mull.x | 1 +
2 files changed, 5 insertions(+)
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 6b7b0a2f3d4..f620a83223d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-02-27 Alexandre Oliva <oliva@adacore.com>
+
+ * gcc.target/aarch64/vect-mull.x (SH): Undefine.
+
2020-02-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/93508
diff --git a/gcc/testsuite/gcc.target/aarch64/vect-mull.x b/gcc/testsuite/gcc.target/aarch64/vect-mull.x
index 39ec43d77e3..930e7035b1c 100644
--- a/gcc/testsuite/gcc.target/aarch64/vect-mull.x
+++ b/gcc/testsuite/gcc.target/aarch64/vect-mull.x
@@ -9,6 +9,7 @@ typedef unsigned short *__restrict__ pRUINT16;
typedef unsigned int *__restrict__ pRUINT32;
typedef unsigned long long *__restrict__ pRUINT64;
+#undef SH /* Including limits.h on vxworks defines this. */
typedef signed short SH;
typedef unsigned short UH;
typedef signed int SS;
More information about the Gcc-cvs
mailing list