Blame SOURCES/gcc48-rh1614326.patch

fdda51
2016-05-04  Alan Modra  <amodra@gmail.com>
fdda51
 
fdda51
	* config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
fdda51
fdda51
--- gcc/config/rs6000/rs6000.h
fdda51
+++ gcc/config/rs6000/rs6000.h
fdda51
@@ -2058,7 +2058,10 @@ do {									     \
fdda51
    to allocate such a register (if necessary).  */
fdda51
 
fdda51
 #define RS6000_PIC_OFFSET_TABLE_REGNUM 30
fdda51
-#define PIC_OFFSET_TABLE_REGNUM (flag_pic ? RS6000_PIC_OFFSET_TABLE_REGNUM : INVALID_REGNUM)
fdda51
+#define PIC_OFFSET_TABLE_REGNUM \
fdda51
+  (TARGET_TOC ? TOC_REGISTER			\
fdda51
+   : flag_pic ? RS6000_PIC_OFFSET_TABLE_REGNUM	\
fdda51
+   : INVALID_REGNUM)
fdda51
 
fdda51
 #define TOC_REGISTER (TARGET_MINIMAL_TOC ? RS6000_PIC_OFFSET_TABLE_REGNUM : 2)
fdda51