public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98139] New: varasm.c fails to compile on AIX 7.2: -Werror=unused-variable
@ 2020-12-04 11:51 ro at gcc dot gnu.org
  2020-12-04 11:52 ` [Bug target/98139] " ro at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: ro at gcc dot gnu.org @ 2020-12-04 11:51 UTC (permalink / raw)
  To: gcc-bugs

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...

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-12-07 11:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-04 11:51 [Bug target/98139] New: varasm.c fails to compile on AIX 7.2: -Werror=unused-variable ro at gcc dot gnu.org
2020-12-04 11:52 ` [Bug target/98139] " ro at gcc dot gnu.org
2020-12-04 13:00 ` dje at gcc dot gnu.org
2020-12-04 13:39 ` rguenth at gcc dot gnu.org
2020-12-04 13:43 ` ro at CeBiTec dot Uni-Bielefeld.DE
2020-12-04 13:46 ` dje at gcc dot gnu.org
2020-12-05 22:10 ` dje at gcc dot gnu.org
2020-12-07 11:52 ` ro at CeBiTec dot Uni-Bielefeld.DE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).