------- Comment #9 from dwitte at gmail dot com 2010-09-15 21:01 ------- Created an attachment (id=21806) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21806&action=view) testcase
Here you go. This passes at -O0 but fails at -O2. Note that the testcase requires >= 7 args to the test function, to force the last arg to spill onto the stack; also an inner (non-inlined) function call, to force that single stack arg to be zero-extended to word size and overwrite the flags. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45677