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