Commit fdbc0dd5 authored by Alan Modra's avatar Alan Modra
Browse files

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/ (FOO_MSG_LEN): Set to 4.

(cherry picked from commit a13ba308)
parent 641cbc94
2019-09-25 Alan Modra <>
Apply from master
2019-09-22 Alan Modra <>
* testsuite/ld-srec/ (FOO_MSG_LEN): Set to 4.
2019-09-19 Alan Modra <>
PR 24981
// 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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment