[Bug target/40935] [avr] conditional comparison uses short instead of char

ian at airs dot com gcc-bugzilla@gcc.gnu.org
Sun Nov 7 07:16:00 GMT 2010


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

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ian at airs dot com
         Resolution|                            |INVALID

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2010-11-07 05:55:23 UTC ---
I agree with Georg that there does not seem to be a bug here.  When I compile
with optimization this looks fine.  Note that C states that all arithmetic
operations are done in the type "int", which for AVR is the same size as the
type "short" by default.  This is done unless the optimizers can prove that it
is unnecessary.



More information about the Gcc-bugs mailing list