Bug#342126: gcc-4.0: gcc generates bad assembly code for simple code
Vagner Pedrotti <vpbra@yahoo.com.br> writes:
> When I compile the following simple code, gcc fails with:
> /tmp/ccySlj9q.s: Assembler messages:
> /tmp/ccySlj9q.s:56: Error: missing or invalid immediate expression `'
> taken as 0
> /tmp/ccySlj9q.s:56: Error: suffix or operands invalid for `call'
This boils down to:
void f() {
$();
}
Apparently i386 doesn't like symbols starting with $. There should
probably be a better error message, but I wouldn't give it very high
priority... Or maybe there is some way to "escape" the symbol name?
--
Falk
Reply to: