This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/48337] [4.7 regression] options.c doesn't compile on SPARC


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]