Work around gcc10 FAIL: S-records with constructors
authorAlan Modra <amodra@gmail.com>
Sat, 21 Sep 2019 08:43:52 +0000 (18:13 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 25 Sep 2019 00:35:14 +0000 (10:05 +0930)
commitfdbc0dd57d84d6d57909be2f67c502cebc218fbc
tree85132dc6c36ffda4a1e66ad8581df8550a585341
parent641cbc94c4018cfed8f47de70254241aa7098466
Work around gcc10 FAIL: S-records with constructors

gcc10 on x86_64 and powerpc64le recognises that the loop in
Foo::operator= can be turned into a call to memmove, which then
results in an undefined symbol when linking.  Avoid that by making the
loop smaller.

* testsuite/ld-srec/sr3.cc (FOO_MSG_LEN): Set to 4.

(cherry picked from commit a13ba30840ba7a8450dcb4edd356de61fcb89130)
ld/ChangeLog
ld/testsuite/ld-srec/sr3.cc