------- Comment #2 from etienne_lorrain at yahoo dot fr  2010-02-24 09:45 
-------
It would be nice to have the warning in the second case too, i.e. for
(unsigned long long)(val1*val2).
Another solution, probably a lot more complex to implement, is to have
a compilation switch to expand all calculus to 64 bits even when "int"
is 32 bits, and let the optimiser convert back to simpler assembly code
when the result used is only 32 bits.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42935

Reply via email to