https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98139
Bug ID: 98139 Summary: varasm.c fails to compile on AIX 7.2: -Werror=unused-variable Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: dje at gcc dot gnu.org Target Milestone: --- Host: powerpc-ibm-aix7.2.4.0 Target: powerpc-ibm-aix7.2.4.0 Build: powerpc-ibm-aix7.2.4.0 I've just tried a bootstrap of current master with a self-compiled GCC 8.4.0 on gcc119 in the cfarm. The build failed compiling varasm.c in stage2: /home/ro/gcc/src/gcc-master/gcc/varasm.c: In function 'void output_constant_pool _contents(rtx_constant_pool*)': /home/ro/gcc/src/gcc-master/gcc/varasm.c:4254:21: error: unused variable 'name' [-Werror=unused-variable] 4254 | const char *name = targetm.strip_name_encoding (XSTR (desc->sym, 0)); | I've used the attached patch to finish the build. It needs at last proper formatting and wrapping the args in parens. However, I wonder why there's no other report of this issue...