Message ID | 150b5e7a-aaa9-36a4-be4e-bb777f000630@linux.ibm.com |
---|---|
State | New |
Headers | show |
Series | [rs6000] Fix PR86612 | expand |
On Thu, Jul 26, 2018 at 02:53:09PM -0500, Pat Haugen wrote: > Probably an obvious patch but... > > The testcase fails because it looks like recent glibc headers (2.27 at least) no longer contain a declaration for __strdup, which results in warning messages being generated and failure for excess errors. Fixed by calling the standard name. > > Verified the testcase now passes, ok for trunk? I thought you pasted this strangely, but nope, the testcase is really like that. Okay for trunk and all branches. Thanks! Segher
Index: testsuite/gcc.target/powerpc/pr58673-2.c =================================================================== --- testsuite/gcc.target/powerpc/pr58673-2.c (revision 262974) +++ testsuite/gcc.target/powerpc/pr58673-2.c (working copy) @@ -140,7 +140,7 @@ pr_ff (t_coupl_rec * tcr, real time, t_i malloc (__len); __retval;} - )): __strdup (eoNames[i]))); + )): strdup (eoNames[i]))); raleg[j++] = (__extension__ (__builtin_constant_p (buf) @@ -165,7 +165,7 @@ pr_ff (t_coupl_rec * tcr, real time, t_i malloc (__len); __retval;} - )): __strdup (buf))); + )): strdup (buf))); } } if (tcr->nLJ)