]> gcc.gnu.org Git - gcc.git/commitdiff
i386.h (GOT_SYMBOL_NAME): Define.
authorKrister Walfridsson <cato@df.lth.se>
Fri, 6 Sep 2002 20:34:41 +0000 (22:34 +0200)
committerKrister Walfridsson <kristerw@gcc.gnu.org>
Fri, 6 Sep 2002 20:34:41 +0000 (20:34 +0000)
* config/i386/i386.h (GOT_SYMBOL_NAME): Define.
* config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
(ix86_output_addr_diff_elt) Likewise.
(x86_output_mi_thunk) Likewise.
* config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.

From-SVN: r56904

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.h
gcc/config/i386/netbsd.h

index 9ea0e662f54aae621616ef39482a1b1e8b6e06f1..86f3fb225699a8ef3a68257e92ba8b33d1235085 100644 (file)
@@ -142,6 +142,14 @@ Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
        * config/h8300/h8300.c (asm_file_start): Add a missing
        semicolon.
 
+2002-09-04  Krister Walfridsson  <cato@df.lth.se>
+
+       * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
+       * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
+       (ix86_output_addr_diff_elt) Likewise.
+       (x86_output_mi_thunk) Likewise.
+       * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
+
 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * frv.c (frv_encode_section_info): Fix error in last change.
index 4e0da606f92e3897a843cdadb10750b5d94f1904..a000bae754c3ec43d13567f87f21fa70dbbc4ab3 100644 (file)
@@ -3963,7 +3963,7 @@ output_set_got (dest)
   rtx xops[3];
 
   xops[0] = dest;
-  xops[1] = gen_rtx_SYMBOL_REF (Pmode, "_GLOBAL_OFFSET_TABLE_");
+  xops[1] = gen_rtx_SYMBOL_REF (Pmode, GOT_SYMBOL_NAME);
 
   if (! TARGET_DEEP_BRANCH_PREDICTION || !flag_pic)
     {
@@ -7335,8 +7335,8 @@ ix86_output_addr_diff_elt (file, value, rel)
             machopic_function_base_name () + 1);
 #endif
   else
-    asm_fprintf (file, "%s%U_GLOBAL_OFFSET_TABLE_+[.-%s%d]\n",
-                ASM_LONG, LPREFIX, value);
+    asm_fprintf (file, "%s%U%s+[.-%s%d]\n",
+                ASM_LONG, GOT_SYMBOL_NAME, LPREFIX, value);
 }
 \f
 /* Generate either "mov $0, reg" or "xor reg, reg", as appropriate
@@ -13800,7 +13800,7 @@ x86_output_mi_thunk (file, delta, function)
        {
          xops[0] = pic_offset_table_rtx;
          xops[1] = gen_label_rtx ();
-         xops[2] = gen_rtx_SYMBOL_REF (Pmode, "_GLOBAL_OFFSET_TABLE_");
+         xops[2] = gen_rtx_SYMBOL_REF (Pmode, GOT_SYMBOL_NAME);
 
          if (ix86_regparm > 2)
            abort ();
index d6c779dffcffd1aa6f2b21190b21464e4f3102e8..1c75c20591f8c0ca82a2c5ddcea471b1d4675de5 100644 (file)
@@ -1105,6 +1105,8 @@ do {                                                                      \
    : reload_completed ? REGNO (pic_offset_table_rtx)   \
    : REAL_PIC_OFFSET_TABLE_REGNUM)
 
+#define GOT_SYMBOL_NAME "_GLOBAL_OFFSET_TABLE_"
+
 /* Register in which address to store a structure value
    arrives in the function.  On the 386, the prologue
    copies this from the stack to register %eax.  */
index 332e70f1f42b400b4921da94e6c827a0b0f309d0..ab0af773bd176a3353bc2b2402a4792b27d4beee 100644 (file)
@@ -62,3 +62,8 @@
 /* Until they use ELF or something that handles dwarf2 unwinds
    and initialization stuff better.  */
 #define DWARF2_UNWIND_INFO 0
+
+/* Redefine this so that it becomes "_GLOBAL_OFFSET_TABLE_" when the label
+   prefix is added.  */
+#undef GOT_SYMBOL_NAME
+#define GOT_SYMBOL_NAME "GLOBAL_OFFSET_TABLE_"
This page took 0.208524 seconds and 5 git commands to generate.