[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."

From: Bernd Schmidt
Subject: Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."
Date: Sat, 30 Dec 2006 12:09:27 +0100
User-agent: Thunderbird (X11/20061229)

Paul Eggert wrote:
"Richard Guenther" <address@hidden> writes:

Authors of the affected programs should adjust their makefiles

That is what the proposed patch is for.  It gives a way for
developers to adjust their makefiles.

A developer of portable software cannot simply put something
like this into a makefile:

  CFLAGS = -g -O2 -fwrapv

as -fwrapv won't work with most other compilers.  So the
developer needs some Autoconfish help anyway, to address the
problem.  The proposed help is only rudimentary, but it does
adjust makefiles to address the issue, and it's better than
nothing.  Further improvements would of course be welcome.

So rather than changing the default to -fwrapv for all programs, which I would find most unwelcome, how about adding a macro
which could add -fwrapv and maybe -fno-strict-aliasing if the compiler supports them? Then anyone who knows their program is affected, or is just worried that it might be, could add that macro to their


reply via email to

[Prev in Thread] Current Thread [Next in Thread]