Revert
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 31 Jan 2018 10:24:19 +0000 (10:24 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 31 Jan 2018 10:24:19 +0000 (10:24 +0000)
2018-01-12  Eric Botcazou  <ebotcazou@adacore.com>

* config/sparc/sparc.md (vxworks_load_got): Set the GOT register.

From-SVN: r257227

gcc/ChangeLog
gcc/config/sparc/sparc.md

index 5c1977907f1aedc5546336276172e39893a29ddc..84efedde87f21222072bb1939b4b2483e216de1d 100644 (file)
@@ -1,3 +1,10 @@
+2018-01-31  Eric Botcazou  <ebotcazou@adacore.com>
+
+       Revert
+       2018-01-12  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * config/sparc/sparc.md (vxworks_load_got): Set the GOT register.
+
 2018-01-31  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR rtl-optimization/84071
index 3255e5c827229c0f679b7be7659e4d1d12b5d9ff..7988dece99d2079c25e44e34c83f73141c30b849 100644 (file)
   "flag_pic"
   "or\t%1, %%lo(%a3-(%a2-.)), %0")
 
-;; Set up the GOT register for VxWorks.
+;; Set up the PIC register for VxWorks.
 
 (define_expand "vxworks_load_got"
   [(set (match_dup 0)
        (mem:SI (lo_sum:SI (match_dup 0) (match_dup 2))))]
   "TARGET_VXWORKS_RTP"
 {
-  operands[0] = global_offset_table_rtx;
+  operands[0] = pic_offset_table_rtx;
   operands[1] = gen_rtx_SYMBOL_REF (SImode, VXWORKS_GOTT_BASE);
   operands[2] = gen_rtx_SYMBOL_REF (SImode, VXWORKS_GOTT_INDEX);
 })