]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Rename test-defined macros
authorDimitar Dimitrov <dimitar@dinux.eu>
Sun, 8 May 2022 12:35:02 +0000 (15:35 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Fri, 24 Jun 2022 20:22:14 +0000 (23:22 +0300)
commit2e2371b5daad74b581842bbc846f8f10c78d4520
treebc972685a60d730b6c86ac6494d7a25ef4cd1e08
parentb1d0d3520e96802dee37e8fc1c56e19c13d598b1
testsuite: Rename test-defined macros

Epiphany, PRU, ARC and NDS32 may predefine __big_endian__ and
__little_endian__ macros.  This leads to spurious warnings like:
  gcc.dg/sso/memcpy-1.c:7: warning: "__little_endian__" redefined

Fix by renaming the macros in the test.

gcc/testsuite/ChangeLog:

* gcc.dg/sso/memcpy-1.c (__big_endian__, __little_endian__):
Rename macros to avoid conflicts with predefined ones.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/gcc.dg/sso/memcpy-1.c