work-around system header namespace pollution
authorAlexandre Oliva <oliva@adacore.com>
Thu, 27 Feb 2020 16:34:44 +0000 (13:34 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 27 Feb 2020 16:34:44 +0000 (13:34 -0300)
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.

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/aarch64/vect-mull.x

index 6b7b0a2f3d46320dcdde1fb7124e8bf00277fadc..f620a83223d42c494910d959cc99e8f827bd8b60 100644 (file)
@@ -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
index 39ec43d77e3f8671329448850b49a93499750b4f..930e7035b1ce716d5b890e211d91fdeade482a9f 100644 (file)
@@ -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;