User: Password:
|
|
Subscribe / Log in / New account

Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

Posted Mar 23, 2013 16:31 UTC (Sat) by dougg (subscriber, #1894)
Parent article: Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

While on the subject, C seems to give a guarantee that the address one above the top of an array is valid for comparison purposes, as long as it is not de-referenced. What about those folks with similar logic going through an array backwards? IOW what about the address prior to index 0 ('arr - 1' so to speak)?


(Log in to post comments)

Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

Posted Mar 23, 2013 16:52 UTC (Sat) by mansr (guest, #85328) [Link]

You're not allowed to even think about that address.

Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

Posted Mar 23, 2013 22:46 UTC (Sat) by Trelane (subscriber, #56877) [Link]

What address?

Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

Posted Mar 23, 2013 23:05 UTC (Sat) by mansr (guest, #85328) [Link]

Any address below the start of an (array) object.

Regehr: GCC 4.8 Breaks Broken SPEC 2006 Benchmarks

Posted Mar 24, 2013 1:42 UTC (Sun) by wahern (subscriber, #37304) [Link]

*whoosh* :P


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