[Bug gold/14316] New: gold build failure with recent GCC trunk because of -Werror=unused-local-typedefs

View: New views
1 Messages — Rating Filter:   Alert me  

[Bug gold/14316] New: gold build failure with recent GCC trunk because of -Werror=unused-local-typedefs

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

| View Threaded | Show Only this Message

http://sourceware.org/bugzilla/show_bug.cgi?id=14316

             Bug #: 14316
           Summary: gold build failure with recent GCC trunk because of
                    -Werror=unused-local-typedefs
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
        AssignedTo: ian@...
        ReportedBy: ai.azuma@...
                CC: ccoutant@...
    Classification: Unclassified


Recently, GCC has introduced a new kind of warning flags
`-Werror=unused-local-typedefs'
(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33255), which warns about unused
local typedefs. And since GCC 4.8 (2012-05-04) it is enabled by `-Wall'. So,
warnings are treated as errors during the build of gold because some of gold
sources have unused local typedefs, and `-Wall' and `-Werror' are enabled.

Offending lines (of 2012-06-29 daily snapshot) are
  -gold/common.cc, line 225
  -gold/common.cc, line 226
  -gold/dwarf_reader.cc, line 824
  -gold/ehframe.cc, line 634
  -gold/incremental.cc, line 2731
  -gold/powerpc.cc, line 1974
  -gold/arm.cc, line 3256
  -gold/arm.cc, line 5212
  -gold/arm.cc, line 10993

If all the offending lines are just commented out, gold is successfully built.

--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@...
https://lists.gnu.org/mailman/listinfo/bug-binutils