This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/48337] [4.7 regression] options.c doesn't compile on SPARC
- From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Mar 2011 15:43:59 +0000
- Subject: [Bug bootstrap/48337] [4.7 regression] options.c doesn't compile on SPARC
- Auto-submitted: auto-generated
- References: <bug-48337-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48337
--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-03-29 15:43:39 UTC ---
> Try adding Init(PROCESSOR_V7) to the lines in sparc.opt defining sparc_cpu
> and sparc_cpu_and_features. It appears an explicit initializer of 0 for
> these enums isn't being accepted even where an implicit 0 from the lack of
> initializer (when a variable rather than a field was used) was accepted.
That did the trick, together with a similar change in sparc.c.
I'll submit the patch shortly.
Thanks.
Rainer