public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/48337] New: [4.7 regression] options.c doesn't compile on SPARC
@ 2011-03-29 14:38 ro at gcc dot gnu.org
  2011-03-29 15:08 ` [Bug bootstrap/48337] " joseph at codesourcery dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ro at gcc dot gnu.org @ 2011-03-29 14:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48337

           Summary: [4.7 regression] options.c doesn't compile on SPARC
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ro@gcc.gnu.org
                CC: ebotcazou@gcc.gnu.org, jsm28@gcc.gnu.org
              Host: sparc-sun-solaris2.*
            Target: sparc-sun-solaris2.*
             Build: sparc-sun-solaris2.*


As already reported by Art Haas on the gcc list, SPARC bootstrap is broken
since
Joseph's recent sparc option patch:

options.c:753:3: error: enum conversion in initialization is invalid in C++
[-Werror=c++-compat]
options.c:753:3: error: (near initialization for
'global_options_init.x_sparc_cpu_and_features') [-Werror=c++-compat]
options.c:755:3: error: enum conversion in initialization is invalid in C++
[-Werror=c++-compat]
options.c:755:3: error: (near initialization for
'global_options_init.x_sparc_cpu') [-Werror=c++-compat]

The lines in question are:

  0, /* sparc_cpu_and_features */
  0, /* sparc_std_struct_return */
  0, /* sparc_cpu */

Since I could make no sense of the options machinery, I've added

options.o-warn = -Wno-error

to gcc/Makefile.in as a workaround.


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

end of thread, other threads:[~2011-03-30 10:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-29 14:38 [Bug bootstrap/48337] New: [4.7 regression] options.c doesn't compile on SPARC ro at gcc dot gnu.org
2011-03-29 15:08 ` [Bug bootstrap/48337] " joseph at codesourcery dot com
2011-03-29 15:50 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-03-29 16:07 ` ro at gcc dot gnu.org
2011-03-30 10:42 ` ro at gcc dot gnu.org
2011-03-30 10:44 ` ro at gcc dot gnu.org

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