LWN.net Logo

Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

Posted Mar 23, 2013 22:08 UTC (Sat) by dvdeug (subscriber, #10998)
In reply to: Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks by butlerm
Parent article: Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

No, because it's impossible for the compiler to tell when it's a bug or not. If you don't want "Any optimization so radical that it replaces behavior that is undefined some of the time [with] behavior that is undefined all of the time", there's a command-line option for that, -O0. These optimizations aren't radical. Why are you using C if you aren't wanting to trade off safety for speed, anyway?


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds