Re: BUG: assuming signed overflow does not occur when simplifying conditional to constant

2012-12-29 Thread Bruce Korb
(Tarball attachment (75K) stripped.) On 12/29/12 10:56, Florian Weimer wrote: >> Not easily. git clone git://git.savannah.gnu.org/autogen.git > > Uhm, I get: > > configure.ac:30: error: AC_INIT should be called with package and version > arguments I ought to have directed you to a pre-release

Re: BUG: assuming signed overflow does not occur when simplifying conditional to constant

2012-12-29 Thread Florian Weimer
* Bruce Korb: > Hi Florian, > > On Sat, Dec 29, 2012 at 2:38 AM, Florian Weimer wrote: >>> ../../autoopts/configfile.c: In function 'intern_file_load': >>> ../../autoopts/configfile.c:1025:12: error: assuming signed overflow does >>> not occur \ >>> when simplifying conditional to constant [

Re: BUG: assuming signed overflow does not occur when simplifying conditional to constant

2012-12-29 Thread Bruce Korb
Hi Florian, On Sat, Dec 29, 2012 at 2:38 AM, Florian Weimer wrote: >> ../../autoopts/configfile.c: In function 'intern_file_load': >> ../../autoopts/configfile.c:1025:12: error: assuming signed overflow does >> not occur \ >> when simplifying conditional to constant [-Werror=strict-overflow]

Re: BUG: assuming signed overflow does not occur when simplifying conditional to constant

2012-12-29 Thread Florian Weimer
* Bruce Korb: > I wrote a loop that figures out how many items are in a list, > counts down from that count to -1, changes direction and counts > up from 0 to the limit, a la: > > > inc = -1; > int idx = 0; > while (opts->papzHomeList[idx+1] != NULL) > idx++; > for (;;) {

BUG: assuming signed overflow does not occur when simplifying conditional to constant

2012-12-28 Thread Bruce Korb
I wrote a loop that figures out how many items are in a list, counts down from that count to -1, changes direction and counts up from 0 to the limit, a la: inc = -1; int idx = 0; while (opts->papzHomeList[idx+1] != NULL) idx++; for (;;) { if (idx < 0) { <<<=== li