From 46788c65f93c61a06764b284b4656dd9024e88d2 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 27 Feb 2020 13:34:44 -0300 Subject: [PATCH] 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. --- 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 + + * gcc.target/aarch64/vect-mull.x (SH): Undefine. + 2020-02-27 Richard Biener 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; -- 2.30.2