https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77676
Bug ID: 77676 Summary: powerpc64 and powerpc64le stage2 bootstrap fail Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: amodra at gmail dot com Target Milestone: --- Created attachment 39668 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39668&action=edit testcase The attached testcase taken from rs6000.c output_cbranch shows a wrong optimisation of sprintf to strcpy when compiled with -O2 -Wall. Yes, -Wall seems to be necessary.