Blame SOURCES/gcc44-ppc64-aixdesc.patch

dc1507
2009-09-16  Jakub Jelinek  <jakub@redhat.com>
dc1507
dc1507
	* config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Disable
dc1507
	out of line gpr/fpr saving for -m64 -Os -mcall-aixdesc.
dc1507
dc1507
--- gcc/config/rs6000/sysv4.h.jj	2009-09-16 14:46:19.000000000 +0200
dc1507
+++ gcc/config/rs6000/sysv4.h	2009-09-16 14:46:19.000000000 +0200
dc1507
@@ -273,12 +273,14 @@ do {									\
dc1507
 /* Define cutoff for using external functions to save floating point.
dc1507
    When optimizing for size, use external functions when profitable.  */
dc1507
 #define FP_SAVE_INLINE(FIRST_REG) (optimize_size			\
dc1507
+				   && (!TARGET_64BIT || !DOT_SYMBOLS)	\
dc1507
 				   ? ((FIRST_REG) == 62			\
dc1507
 				      || (FIRST_REG) == 63)		\
dc1507
 				   : (FIRST_REG) < 64)
dc1507
 /* And similarly for general purpose registers.  */
dc1507
-#define GP_SAVE_INLINE(FIRST_REG) ((FIRST_REG) < 32	\
dc1507
-				   && !optimize_size)
dc1507
+#define GP_SAVE_INLINE(FIRST_REG) ((FIRST_REG) < 32			\
dc1507
+				   && (!optimize_size			\
dc1507
+				        || (TARGET_64BIT && DOT_SYMBOLS)))
dc1507
 
dc1507
 /* Put jump tables in read-only memory, rather than in .text.  */
dc1507
 #define JUMP_TABLES_IN_TEXT_SECTION 0