------- Comment #1 from manu at gcc dot gnu dot org 2008-04-18 15:08 ------- The C/C++ front-end plays games for bitwise operators, so it may drop the casts but then use the original type or surround the whole operation by a conversion to int. Part of the problem is fixed in mainline. However, other parts remain (PR35701 and PR34389). I don't have time to work on this at the moment but there was an initial attempt was in the thread originated here:
http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00611.html -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu dot org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-04-18 15:08:04 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35852