diff options
author | Alexandre Oliva <oliva@adacore.com> | 2020-02-27 13:34:44 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2020-02-27 13:34:44 -0300 |
commit | 46788c65f93c61a06764b284b4656dd9024e88d2 (patch) | |
tree | 1bb67ecffbd2cbb09f832a774aa628254701b330 | |
parent | ae7051590d4bf9b844874e727791f236315c835a (diff) | |
download | gcc-46788c65f93c61a06764b284b4656dd9024e88d2.zip gcc-46788c65f93c61a06764b284b4656dd9024e88d2.tar.gz gcc-46788c65f93c61a06764b284b4656dd9024e88d2.tar.bz2 |
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.
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/aarch64/vect-mull.x | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6b7b0a2..f620a83 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 39ec43d..930e703 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; |