------- Comment #1 from regehr at cs dot utah dot edu  2009-04-04 05:44 -------
To be clear: func_7() should return 1, but does not at -O2 and -Os.

In the Avrora output the result of the function looks like this: 

  r30:r31 = 0x0001

or 

  r30:r31 = 0x0C00


-- 

regehr at cs dot utah dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|integer wrong code bug on   |integer wrong code bug on
                   |AVR                         |AVR


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

Reply via email to