ISO C violation (really -- style & string pasting)
Richard Henderson
rth@cygnus.com
Thu Mar 25 15:07:00 GMT 1999
On Thu, Mar 25, 1999 at 03:47:37PM -0700, Donn Terry wrote:
> i386.c: output_asm_insn ("addl $_GLOBAL_OFFSET_TABLE_,%0", xops);
These references should be converted into proper arguments.
Create a SYMBOL_REF with the GLOBAL_OFFSET_TABLE_SYMBOL and
put it in xops as needed.
> i386.c: output_asm_insn ("addl $_GLOBAL_OFFSET_TABLE_+[.-%P1],%0", xops);
This one should probably be converted to
(const:SI (plus:SI (symbol_ref:SI GLOBAL_OFFSET_TABLE_SYMBOL)
(minus:SI (pc)
(symbol_ref:SI FOO))))
and teach print_operand any missing bits so that
output_asm_insn ("addl %P1,%0", xops);
will do the right thing.
r~
More information about the Gcc
mailing list