Blame SOURCES/gcc32-ppc-mpowerpc64.patch

4ac4fd
2004-10-26  Jakub Jelinek  <jakub@redhat.com>
4ac4fd
4ac4fd
	* config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
4ac4fd
	-m32 -mpowerpc64 and -m64 -mno-powerpc64.
4ac4fd
4ac4fd
--- gcc/config/rs6000/linux64.h.jj	2004-02-28 12:27:45.000000000 +0100
4ac4fd
+++ gcc/config/rs6000/linux64.h	2004-10-26 12:45:20.399107248 +0200
4ac4fd
@@ -142,6 +142,16 @@ Boston, MA 02111-1307, USA.  */
4ac4fd
 	  flag_pic = 0;						\
4ac4fd
 	  error ("-m32 and -maddr32 are incompatible");		\
4ac4fd
 	}							\
4ac4fd
+      if (TARGET_32BIT && TARGET_POWERPC64)			\
4ac4fd
+        {							\
4ac4fd
+          error ("-mpowerpc64 can't be used for 32-bit compilation"); \
4ac4fd
+          target_flags &= ~MASK_POWERPC64;			\
4ac4fd
+        }							\
4ac4fd
+      else if (TARGET_64BIT && !TARGET_POWERPC64)		\
4ac4fd
+        {							\
4ac4fd
+          error ("-mno-powerpc64 can't be used for 64-bit compilation"); \
4ac4fd
+          target_flags |= MASK_POWERPC64 | MASK_POWERPC;	\
4ac4fd
+        }							\
4ac4fd
     }								\
4ac4fd
   while (0)
4ac4fd