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 17:21 UTC (Sat) by jedbrown (subscriber, #49919)
Parent article: Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

It's disappointing that SPEC refuses to fix the code and is spreading misinformation like "it is at minimum arguable that the code fragment is compliant under the C89 standard". If the global 'int d[16]' is placed at the very end of a page (which the linker is allowed to do), their code compiled in the most naive possible way will SEGV.


(Log in to post comments)

SPEC 2006

Posted Mar 23, 2013 23:10 UTC (Sat) by tialaramex (subscriber, #21167) [Link]

Sure, but on the other hand it's possible to sympathise with their argument that SPEC represents fragments of real code. Probably anybody here who has read a lot of C code has seen people doing things much like this. It's /legal/ for GCC to break all those programs, but it's probably not desirable and so I'm glad they changed that for release.

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