question about -Werror=strict-overflow

Ian Lance Taylor iant@google.com
Thu May 19 00:29:00 GMT 2011


Jędrzej Dudkiewicz <jedrzej.dudkiewicz@gmail.com> writes:

> It's very strange - in whole function (300 lines, yay), this variable is used:
> 1) to store return values from different functions, all of them
> returning signed integers
> 2) for comparison with different values defined in a manner similar to
> SSLSOCK_S_SUCCED mentioned above.
>
> There are no arithmetic, logical or bit operations involving this
> variable. It's completely beyond me, why would gcc change this to a
> constant.

Consider function inlining.

Ian



More information about the Gcc-help mailing list