This is the mail archive of the 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]

remove bogus check from arm_override_options

Although it doesn't work to use APCS-26 on a machine with no 26-bit mode, there 
is nothing wrong with using APCS-32 on a machine with no 32-bit mode.  The
favoured configuration for Linux these days is APCS-32 universally.

I'd like to apply this to the trunk, the 3.0 branch and the 2.95 branch.


2001-05-27  Philip Blundell  <>

	* config/arm/arm.c (arm_override_options): Allow 26-bit cpus to
	use APCS-32.

Index: config/arm/arm.c
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.c,v
retrieving revision 1.146
diff -u -p -u -r1.146 arm.c
--- arm.c	2001/05/24 21:09:05	1.146
+++ arm.c	2001/05/27 10:51:51
@@ -509,17 +535,8 @@ arm_override_options ()
   /* Make sure that the processor choice does not conflict with any of the
      other command line choices.  */
-  if (TARGET_APCS_32 && !(insn_flags & FL_MODE32))
+  if (!TARGET_APCS_32 && !(insn_flags & FL_MODE26))
-      /* If APCS-32 was not the default then it must have been set by the
-	 user, so issue a warning message.  If the user has specified
-	 "-mapcs-32 -mcpu=arm2" then we loose here.  */
-      if ((TARGET_DEFAULT & ARM_FLAG_APCS_32) == 0)
-	warning ("target CPU does not support APCS-32" );
-      target_flags &= ~ARM_FLAG_APCS_32;
-    }
-  else if (!TARGET_APCS_32 && !(insn_flags & FL_MODE26))
-    {
       warning ("target CPU does not support APCS-26" );
       target_flags |= ARM_FLAG_APCS_32;

PGP signature

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