This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."
Paul Eggert <eggert@CS.UCLA.EDU> writes:
| kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes:
|
| > I found my copy of K&R (Second Edition)....
|
| Robert Dewar <dewar@adacore.com> writes:
|
| > so in fact the new C standard has changed
| > nothing from a definitional point of view,
|
| Wait, though: K&Rv2 is post-C89. If memory serves, it was C89
| that established the rule that signed integer overflow has
| undefined behavior whereas unsigned overflow is well-defined.
My memory is that signed integer arithmetic overflow is undefined by
K&R C; unfortunately, my copy of the '77 edition of K&R is at office,
thousands of miles away from where I'm.
-- Gaby