-Waddress fixes for gold testsuite
authorAlan Modra <amodra@gmail.com>
Mon, 15 Nov 2021 02:32:26 +0000 (13:02 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 15 Nov 2021 02:56:17 +0000 (13:26 +1030)
commitdaad0428f27f8379948fa85c951c72ffc16b27d4
tree485acac2b17774be456e808fce73216611403715
parent7aba54da426b9999085d8f84e7896b8afdbb9ca6
-Waddress fixes for gold testsuite

Current mainline gcc.
common_test_1.c: In function 'main':
common_test_1.c:56:14: error: comparison between two arrays [-Werror=array-compare]
   56 |   assert (c5 > c4);
      |              ^
common_test_1.c:56:14: note: use '&c5[0] > &c4[0]' to compare the addresses

* testsuite/common_test_1.c: Avoid -Waddress warnings.
* testsuite/common_test_1_v1.c: Likewise.
* testsuite/common_test_1_v2.c: Likewise.
* testsuite/script_test_2.cc: Likewise.
gold/testsuite/common_test_1.c
gold/testsuite/common_test_1_v1.c
gold/testsuite/common_test_1_v2.c
gold/testsuite/script_test_2.cc