This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question about -Werror=strict-overflow


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]