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 ..."
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Paul Eggert <eggert at CS dot UCLA dot EDU>
- Cc: autoconf-patches at gnu dot org, bug-gnulib at gnu dot org, gcc at gcc dot gnu dot org
- Date: 31 Dec 2006 19:55:57 +0100
- Subject: Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."
- References: <87fybbyq27.fsf@penguin.cs.ucla.edu> <20061220123349.GE7947@iam.uni-bonn.de> <emc3jc$eap$1@sea.gmane.org> <87mz57xjlf.fsf@penguin.cs.ucla.edu>
Paul Eggert <eggert@CS.UCLA.EDU> writes:
| > In that case, we should make the Autoconf change optional.
| > I'll propose a further patch along those lines.
|
| OK, here's that proposed patch to Autoconf. Also, this patch attempts
| to discuss the matter better in the documentation. The documentation
| was by far the hardest part of the patch to write, and I'd appreciate
| any comments/reviews for it.
To the attention of the Steering Committee.
Additional data: the the C++ runtime support assumes and publishes
wrapping semantics for signed integer arithmetic overflow. This can
be seen from numeric_limits<T>::is_modulo.
This has been so for about half a decade now (sorry I don't have the exact
dates).
-- Gaby