diff options
author | Richard Stallman <rms@gnu.org> | 1993-03-02 18:10:41 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-03-02 18:10:41 +0000 |
commit | 66c432a7eed45367b05c3982ded2bbd15dcaf0d5 (patch) | |
tree | 993836c3443e07de1f50d05e90f891a86bcd1d74 /gcc | |
parent | 2b362d2c866f4e3f70a66b2293b340e4ad406877 (diff) | |
download | gcc-66c432a7eed45367b05c3982ded2bbd15dcaf0d5.zip gcc-66c432a7eed45367b05c3982ded2bbd15dcaf0d5.tar.gz gcc-66c432a7eed45367b05c3982ded2bbd15dcaf0d5.tar.bz2 |
(output_function_prologue): Use m68k svr4 PIC format to load the address of...
(output_function_prologue): Use m68k svr4 PIC format to
load the address of _GLOBAL_OFFSET_TABLE_ into PIC_OFFSET_TABLE_REG
in function prologue when doing PIC.
(print_operand_address): Always add "@GOT" suffix for the
global object operand when doing PIC.
From-SVN: r3595
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/m68k/m68k.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c index c7f3dc1..a5d210c 100644 --- a/gcc/config/m68k/m68k.c +++ b/gcc/config/m68k/m68k.c @@ -216,10 +216,7 @@ output_function_prologue (stream, size) if (flag_pic && current_function_uses_pic_offset_table) { #ifdef MOTOROLA - asm_fprintf (stream, "\t%Omove.l %0I__GLOBAL_OFFSET_TABLE_, %s\n", - reg_names[PIC_OFFSET_TABLE_REGNUM]); - asm_fprintf (stream, "\tlea.l (%Rpc,%s.l),%s\n", - reg_names[PIC_OFFSET_TABLE_REGNUM], + asm_fprintf (stream, "\t%Olea (%Rpc, %U_GLOBAL_OFFSET_TABLE_@GOTPC), %s\n", reg_names[PIC_OFFSET_TABLE_REGNUM]); #else asm_fprintf (stream, "\tmovel %0I__GLOBAL_OFFSET_TABLE_, %s\n", @@ -1873,10 +1870,8 @@ print_operand_address (file, addr) if (addr != 0) { output_addr_const (file, addr); - if ((flag_pic == 1) && (breg == pic_offset_table_rtx)) - fprintf (file, ".w"); - if ((flag_pic == 2) && (breg == pic_offset_table_rtx)) - fprintf (file, ".l"); + if (flag_pic && (breg == pic_offset_table_rtx)) + fprintf (file, "@GOT"); } fprintf (file, "(%s", reg_names[REGNO (breg)]); if (ireg != 0) |