PR target/63833
* config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
R15_REG for 64-bit.
* config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
From-SVN: r218132
+2014-11-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR target/63833
+ * config/i386/i386.h (REAL_PIC_OFFSET_TABLE_REGNUM): Use
+ R15_REG for 64-bit.
+ * config/i386/rdos64.h (REAL_PIC_OFFSET_TABLE_REGNUM): Removed.
+
2014-11-27 Martin Liska <mliska@suse.cz>
David Malcolm <dmalcolm@redhat.com>
the pic register when possible. The change is visible after the
prologue has been emitted. */
-#define REAL_PIC_OFFSET_TABLE_REGNUM BX_REG
+#define REAL_PIC_OFFSET_TABLE_REGNUM (TARGET_64BIT ? R15_REG : BX_REG)
#define PIC_OFFSET_TABLE_REGNUM \
((TARGET_64BIT && (ix86_cmodel == CM_SMALL_PIC \
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
-#undef REAL_PIC_OFFSET_TABLE_REGNUM
-#define REAL_PIC_OFFSET_TABLE_REGNUM R15_REG
-
#undef DEFAULT_LARGE_SECTION_THRESHOLD
#define DEFAULT_LARGE_SECTION_THRESHOLD 16