This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FIX rs6000 -mpower


Run testsuite with -mpower produces 7000+ errors.

Errors caused by incorrect use of new assember mnemonics.

Disabling new ppc mnemonics if -mpower is used fixes the problem.

--
Tom Rix
GCC Engineer
trix@redhat.com


2001-12-09  Tom Rix  <trix@redhat.com>

	* config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS) : Add check
	for mixing -mpower and -mnew-mnemonics.
	* config/rs6000/aix43.h : Same.
 
diff -rc gcc-old/config/rs6000/aix43.h gcc/config/rs6000/aix43.h
*** gcc-old/config/rs6000/aix43.h	Sun Dec  9 11:22:10 2001
--- gcc/config/rs6000/aix43.h	Sun Dec  9 12:40:11 2001
***************
*** 57,62 ****
--- 57,66 ----
      {									\
        error ("-maix64 required: 64-bit computation with 32-bit addressing not yet supported"); \
      }									\
+   if (TARGET_POWER && TARGET_NEW_MNEMONICS)                    		\
+     {									\
+       target_flags &= ~MASK_NEW_MNEMONICS;				\
+     }									\
  } while (0);
  
  #undef ASM_SPEC
diff -rc gcc-old/config/rs6000/aix51.h gcc/config/rs6000/aix51.h
*** gcc-old/config/rs6000/aix51.h	Sun Dec  9 11:22:10 2001
--- gcc/config/rs6000/aix51.h	Sun Dec  9 12:39:32 2001
***************
*** 57,62 ****
--- 57,66 ----
      {									\
        error ("-maix64 required: 64-bit computation with 32-bit addressing not yet supported"); \
      }									\
+   if (TARGET_POWER && TARGET_NEW_MNEMONICS)                    		\
+     {									\
+       target_flags &= ~MASK_NEW_MNEMONICS;				\
+     }									\
  } while (0);
  
  #undef ASM_SPEC

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]