------- Comment #9 from eweddington at cso dot atmel dot com 2007-07-24 23:50 ------- Version 4.2.1 offers somewhat better results:
With -O0: .file "test.c" /* File "test.c": code 109 = 0x006d ( 74), prologues 18, epilogues 17 */ With -O[123s]: .file "test.c" /* File "test.c": code 79 = 0x004f ( 28), prologues 26, epilogues 25 */ At least the code no longer increases in size when optimization is turned on. Dmitry, are the results for 4.2.1 acceptable for this bug report? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11180