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: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Paul Eggert'" <eggert at CS dot UCLA dot EDU>, <autoconf-patches at gnu dot org>, <bug-gnulib at gnu dot org>, <gcc at gcc dot gnu dot org>
- Date: Sun, 31 Dec 2006 19:51:56 -0000
- Subject: RE: changing "configure" to default to "gcc -g -O2 -fwrapv ..."
On 31 December 2006 18:47, Paul Eggert wrote:
> "Daniel Berlin" <dberlin@dberlin.org> writes:
> The question is not whether GCC should support wrapv
> semantics; it already does, if you specify -fwrapv.
> The question is merely whether wrapv should be the default
> with optimization levels -O0 through -O2.
Maybe we need to make it a trinary, like -Wstrict-aliasing. Then we would
turn on -fwrapv=1 at -O2, and we would only need to argue about which
wrap-assuming optimisations were suitable for level 1 and which weren't.
cheers,
DaveK
--
Can't think of a witty .sigline today....