"Internal compiler error in `fixup_var_refs_1', at function.c:207"

Berti Drost Berti.drost@gmx.net
Thu Apr 20 04:51:00 GMT 2000


Hi there,

There seems to be a bug (at least gcc tells me so) when compiling certain
inline-assembly code with the -O switch set to 2 or above.
Platform: P3, 700MHZ, Win 98 second edition, DJGPP with "gcc --version"
returning "2.952"

Compiling the following code using
  gcc -O6 filename.c
(or gcc -O2 filename.c)
returns an
  Internal compiler error in `fixup_var_refs_1', at function.c:2071

//-- BUG CODE STARTS --
void error_function(void)
{
    char c;
    asm( "mov %0, %%eax"
        :
        :"m" (&c)
        : "eax" ); 
}
//-- BUG CODE ENDS --

NOTE: the "mov %0, %%eax"-part can also be "", the asm-code isn't
important. Seems like the (&c) is
confusing the compiler (just a guess)

B.Drost
berti.drost@gmx.net

p.s. Please confirm that you've received this message, thanks

-- 
Sent through GMX FreeMail - http://www.gmx.net



More information about the Gcc-bugs mailing list