gcc bug

Alexey Voinov voins@caravan.ru
Fri Jan 14 12:44:00 GMT 2000


Hello,

$ gcc -v
Reading specs from /diskc/CYGNUS/CYGWIN~1/USR/BIN/../lib/gcc-lib/i586-cygwin32/2.95.2/specs
gcc version 2.95.2 19991024 (release)

$ uname -a
CYGWIN_98-4.10 VOINS 1.1.0(0.16/3/2) 2000-01-06 12:55:43 i586 unknown

$ gcc -O3 err.c
err.c: In function `main':
err.c:8: warning: asm operand 0 probably doesn't match constraints
err.c:10: Internal compiler error in `fixup_var_refs_1', at function.c:2071
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.

$ cat err.c
int main( void )
{
  unsigned a;
  __asm__ (
           "mov %0, %%eax\n\t"
           :
           : "m" (&a)
           );
}

$ gcc err.c
All works without optimization.
Simple workaround is to use "g" constraint instead of "m".

Best regards,
Alexey Voinov
voins@caravan.ru



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list