[Bug c/31628] stdcall function is miscompiled

2007-04-18 Thread marcus at jet dot franken dot de
--- Comment #3 from marcus at jet dot franken dot de 2007-04-18 19:46 --- the interesting part is that the declaration is just slightly incompatible with the actual definition. If I remove the prototype the problem goes away. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31628

[Bug c/31628] stdcall function is miscompiled

2007-04-18 Thread marcus at jet dot franken dot de
--- Comment #2 from marcus at jet dot franken dot de 2007-04-18 19:45 --- i bisected gcc to find the regression and it was apparently introduced by revision 123146. 2007-03-22 Richard Henderson <[EMAIL PROTECTED]> * config/i386/i386.c (ix86_function_regparm): Early exit for 6

[Bug c/31628] stdcall function is miscompiled

2007-04-18 Thread marcus at jet dot franken dot de
--- Comment #1 from marcus at jet dot franken dot de 2007-04-18 19:44 --- Created an attachment (id=13389) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13389&action=view) reg.i gcc -fPIC -O2 -m32 reg.i -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31628