[Home]

Summary:ASTERISK-11609: ' -fno-strict-overflow' unknown by gcc
Reporter:Holger Hornung (netview)Labels:
Date Opened:2008-03-11 07:26:07Date Closed:2008-03-11 09:06:19
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Rev. 107352 patch to /main/Makefile

stdtime/localtime.o: ASTCFLAGS+=-fno-strict-overflow

This option is not supported with gcc < 4.2

My gcc-Version: 20061115 (prerelease) (Debian 4.1.1-21)
Comments:By: Holger Hornung (netview) 2008-03-11 07:51:00

I don't see -fno-strict-overflow listed at all in the manual for gcc 4.1.
So maybe it is better to use -fwrapv, which is defined thus:

`-fwrapv'
    This option instructs the compiler to assume that signed arithmetic
    overflow of addition, subtraction and multiplication wraps around
    using twos-complement representation.  This flag enables some
    optimizations and disables others.  This option is enabled by
    default for the Java front-end, as required by the Java language
    specification.

By: Digium Subversion (svnbot) 2008-03-11 09:04:08

Repository: asterisk
Revision: 107408

U   branches/1.4/configure
U   branches/1.4/configure.ac
U   branches/1.4/main/Makefile
U   branches/1.4/makeopts.in

------------------------------------------------------------------------
r107408 | kpfleming | 2008-03-11 09:04:06 -0500 (Tue, 11 Mar 2008) | 5 lines

check for compiler support for -fno-strict-overflow before using it (tested with Debian's gcc 4.3, 4.1 and 3.4)

(closes issue ASTERISK-11609)
Reported by: Netview

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=107408

By: Digium Subversion (svnbot) 2008-03-11 09:05:55

Repository: asterisk
Revision: 107409

_U  trunk/
U   trunk/configure
U   trunk/configure.ac
U   trunk/main/Makefile
U   trunk/makeopts.in

------------------------------------------------------------------------
r107409 | kpfleming | 2008-03-11 09:05:54 -0500 (Tue, 11 Mar 2008) | 13 lines

Merged revisions 107408 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r107408 | kpfleming | 2008-03-11 09:07:59 -0500 (Tue, 11 Mar 2008) | 5 lines

check for compiler support for -fno-strict-overflow before using it (tested with Debian's gcc 4.3, 4.1 and 3.4)

(closes issue ASTERISK-11609)
Reported by: Netview

........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=107409

By: Digium Subversion (svnbot) 2008-03-11 09:06:19

Repository: asterisk
Revision: 107410

_U  branches/1.6.0/
U   branches/1.6.0/configure
U   branches/1.6.0/configure.ac
U   branches/1.6.0/main/Makefile
U   branches/1.6.0/makeopts.in

------------------------------------------------------------------------
r107410 | kpfleming | 2008-03-11 09:06:17 -0500 (Tue, 11 Mar 2008) | 21 lines

Merged revisions 107409 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

................
r107409 | kpfleming | 2008-03-11 09:09:49 -0500 (Tue, 11 Mar 2008) | 13 lines

Merged revisions 107408 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r107408 | kpfleming | 2008-03-11 09:07:59 -0500 (Tue, 11 Mar 2008) | 5 lines

check for compiler support for -fno-strict-overflow before using it (tested with Debian's gcc 4.3, 4.1 and 3.4)

(closes issue ASTERISK-11609)
Reported by: Netview

........

................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=107410