[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#342126: gcc-4.0: gcc generates bad assembly code for simple code



Hi,

Sorry by that, I have not noticed de '$'. It should be a '&'.
Really, this is not a import bug.

Thanks,
Vagner.

Falk Hueffner <falk@debian.org> escreveu:
Vagner Pedrotti 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


Yahoo! doce lar. Faça do Yahoo! sua homepage.
Reply to: