bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/14316] New: gold build failure with recent GCC trunk because o


From: ai.azuma at gmail dot com
Subject: [Bug gold/14316] New: gold build failure with recent GCC trunk because of -Werror=unused-local-typedefs
Date: Sat, 30 Jun 2012 03:38:12 +0000

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: address@hidden
        ReportedBy: address@hidden
                CC: address@hidden
    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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]