On 09/04/17 08:54, Manuel López-Ibáñez wrote:
> I wrote an explanation of the current status of Wstrict-overflow to the
> best of my knowledge:
> https://gcc.gnu.org/wiki/VerboseDiagnostics#Wstrict_overflow
>
> I didn't mention GIMPLE because it is often the case that the root of
> the problem i
On 03/09/17 23:00, Bruce Korb wrote:
RFE's are for this list: please improve the message.
The message does not have to be a dissertation, but messages
nowadays can certainly include URL's to direct people to
reasonable places. I'd suggest something like:
gcc.gnu.org/gcc-messages/xxx
WRT
ep, it creates subtle
>> bugs. The warning is worthwhile. Still and all:
>>
>> 485 tvdiff = abs_tval(sub_tval(timetv, tvlast));
>> 486 if (tvdiff.tv_sec != 0) {
>>
>> systime.c: In function 'step_systime':
>> syst
all:
>
> 485 tvdiff = abs_tval(sub_tval(timetv, tvlast));
> 486 if (tvdiff.tv_sec != 0) {
>
> systime.c: In function 'step_systime':
> systime.c:486:5: warning: assuming signed overflow does not occur when
> simplifying conditional to constant [-Wstrict-o
creates subtle
> bugs. The warning is worthwhile. Still and all:
>
> 485 tvdiff = abs_tval(sub_tval(timetv, tvlast));
> 486 if (tvdiff.tv_sec != 0) {
>
> systime.c: In function 'step_systime':
> systime.c:486:5: warning: assuming signed overflow
_tval(timetv, tvlast));
486 if (tvdiff.tv_sec != 0) {
systime.c: In function 'step_systime':
systime.c:486:5: warning: assuming signed overflow does not occur when
simplifying conditional to constant [-Wstrict-overflow]
What possible optimization might be going on to cause an o
-MT libopts_la-libopts.lo \
> -MD -MP -MF .deps/libopts_la-libopts.Tpo \
> -c libopts.c -fPIC -DPIC \
> -o .libs/libopts_la-libopts.o
> In file included from libopts.c:22:0:
> ../../autoopts/configfile.c: In function 'intern_file_load':
> ../../autoopts/configfi
* 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 \
&g
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
idx += inc;
> // do a bunch of stuff
> }
>
> ../../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-ove
e_load':
../../autoopts/configfile.c:1025:12: error: assuming signed overflow does not
occur \
when simplifying conditional to constant [-Werror=strict-overflow]
I do not think GCC should be "simplifying" the expression "idx < 0" to a
constant.
The number of entries
11 matches
Mail list logo