http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53146
--- Comment #2 from Erik Thiele <erikyyy at erikyyy dot de> 2012-04-27 19:55:49 UTC --- run the shell script to compile the source and transfer it to an atmega8 attached to a stk500 programmer. if you read the sourcecode you see, it should end in an endless loop. instead the "unreachable code" section is executed. see the shell script. if you compile with -O1 instead of -Os, then the program will enter endless loop as expected instead of entering unreachable section.