Bug#136630: gcc chokes (internal error) on invalid extended asm
Package: gcc-2.95
Version: 2.95.4-1
Severity: normal
gcc dies on following asm with C expression operands and incompatible
constraints. The actual code that has triggered the bug in the first place
is a sample PC speaker sound driver described in:
<http://www.linuxgazette.com/issue69/mathew.html>
Debian: potato, with random addons
kernel: 2.4.17, stock
libc: libc6_2.2.4-7
august@ananke% gcc -v -c -O foo.i
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 (Debian prerelease)
/usr/lib/gcc-lib/i386-linux/2.95.4/cc1 foo.i -quiet -O -version -o /tmp/ccCHNbwV.s
GNU C version 2.95.4 (Debian prerelease) (i386-linux) compiled by GNU C version 2.95.4 (Debian prerelease).
foo.i: In function `foo':
foo.i:4: Internal compiler error:
foo.i:4: Internal compiler error in `fixup_var_refs_1', at function.c:2082
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
august@ananke% cat foo.i
void foo(long bar)
{
asm("plugh" : "=a" (bar) : "m" (bar));
}
august@ananke% uname -a
Linux ananke 2.4.17 #2 Tue Jan 29 08:31:03 CET 2002 i586 unknown
august@ananke%
Reply to: