aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-09-21 18:13:52 +0930
committerAlan Modra <amodra@gmail.com>2019-09-25 10:05:14 +0930
commitfdbc0dd57d84d6d57909be2f67c502cebc218fbc (patch)
tree85132dc6c36ffda4a1e66ad8581df8550a585341
parenttc-i386.c gcc10 warning fix (diff)
downloadbinutils-gdb-fdbc0dd57d84d6d57909be2f67c502cebc218fbc.tar.gz
binutils-gdb-fdbc0dd57d84d6d57909be2f67c502cebc218fbc.tar.bz2
binutils-gdb-fdbc0dd57d84d6d57909be2f67c502cebc218fbc.zip
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)
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/testsuite/ld-srec/sr3.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 6d57c99f04..d1250b01ce 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2019-09-25 Alan Modra <amodra@gmail.com>
+
+ Apply from master
+ 2019-09-22 Alan Modra <amodra@gmail.com>
+ * testsuite/ld-srec/sr3.cc (FOO_MSG_LEN): Set to 4.
+
2019-09-19 Alan Modra <amodra@gmail.com>
PR 24981
diff --git a/ld/testsuite/ld-srec/sr3.cc b/ld/testsuite/ld-srec/sr3.cc
index 0b5fa7ec89..29f8019468 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;