diff options
author | Alan Modra <amodra@gmail.com> | 2019-09-21 18:13:52 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-09-22 21:13:10 +0930 |
commit | a13ba30840ba7a8450dcb4edd356de61fcb89130 (patch) | |
tree | a7fac2ef7181f54a8d2a606a3417e782049cb000 /ld/testsuite/ld-srec/sr3.cc | |
parent | 77d036789aab73c90dc7f4c798f34748b03de726 (diff) | |
download | gdb-a13ba30840ba7a8450dcb4edd356de61fcb89130.zip gdb-a13ba30840ba7a8450dcb4edd356de61fcb89130.tar.gz gdb-a13ba30840ba7a8450dcb4edd356de61fcb89130.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-srec/sr3.cc')
-rw-r--r-- | ld/testsuite/ld-srec/sr3.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-srec/sr3.cc b/ld/testsuite/ld-srec/sr3.cc index 0b5fa7e..29f8019 100644 --- a/ld/testsuite/ld-srec/sr3.cc +++ b/ld/testsuite/ld-srec/sr3.cc @@ -1,6 +1,6 @@ // This file is compiled and linked into the S-record format. -#define FOO_MSG_LEN 80 +#define FOO_MSG_LEN 4 class Foo { static int foos; |