arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
authorTerry Guo <terry.guo@arm.com>
Wed, 23 Apr 2014 08:59:07 +0000 (08:59 +0000)
committerXuepeng Guo <xguo@gcc.gnu.org>
Wed, 23 Apr 2014 08:59:07 +0000 (08:59 +0000)
2014-04-23  Terry Guo  <terry.guo@arm.com>

* config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.

From-SVN: r209678

gcc/ChangeLog
gcc/config/arm/arm.h

index 9f8200f..0ebe628 100644 (file)
@@ -1,3 +1,7 @@
+2014-04-23  Terry Guo  <terry.guo@arm.com>
+
+       * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
+
 2014-04-23  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/60895
index 597e69c..dafef09 100644 (file)
@@ -2141,8 +2141,7 @@ extern int making_const_table;
   do { cfun->machine->thumb1_cc_insn = NULL_RTX; } while (0)
 
 #undef  ASM_APP_OFF
-#define ASM_APP_OFF (TARGET_THUMB1 ? "\t.code\t16\n" : \
-                    TARGET_THUMB2 ? "\t.thumb\n" : "")
+#define ASM_APP_OFF (TARGET_ARM ? "" : "\t.thumb\n")
 
 /* Output a push or a pop instruction (only used when profiling).
    We can't push STATIC_CHAIN_REGNUM (r12) directly with Thumb-1.  We know