------- Comment #1 from hutchinsonandy at gcc dot gnu dot org 2008-06-11 02:35 ------- Please post command line used to compile and assembler produced.
I cannot reproduce this on 4.4 or 4.2.2. At high optimisation (-Os) it compiles to load PORTC with 3 directly. (as one would expect): 13 /* prologue: frame size=0 */ 14 /* prologue end (size=0) */ 15 0000 8FE0 ldi r24,lo8(15) 16 0002 87B9 out 39-0x20,r24 17 0004 83E0 ldi r24,lo8(3) 18 0006 90E0 ldi r25,hi8(3) 19 0008 88B9 out 40-0x20,r24 20 000a 80E0 ldi r24,lo8(0) 21 000c 90E0 ldi r25,hi8(0) 22 /* epilogue: frame size=0 */ 23 000e 0895 ret -- hutchinsonandy at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eric dot weddington at atmel | |dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36494