Backport from mainline.
2019-01-10 Stefan Agner <stefan@agner.ch>
PR target/88648
* config/arm/arm.c (arm_option_override_internal): Force
opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
* gcc.target/arm/pr88648-asm-syntax-unified.c: Add test to
check if -masm-syntax-unified gets applied properly.
From-SVN: r268765
+2019-02-11 Stefan Agner <stefan@agner.ch>
+
+ Backport from mainline.
+ 2019-01-10 Stefan Agner <stefan@agner.ch>
+
+ PR target/88648
+ * config/arm/arm.c (arm_option_override_internal): Force
+ opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
+
2019-02-09 Alan Modra <amodra@gmail.com>
PR target/88343
/* Thumb2 inline assembly code should always use unified syntax.
This will apply to ARM and Thumb1 eventually. */
- opts->x_inline_asm_unified = TARGET_THUMB2_P (opts->x_target_flags);
+ if (TARGET_THUMB2_P (opts->x_target_flags))
+ opts->x_inline_asm_unified = true;
#ifdef SUBTARGET_OVERRIDE_INTERNAL_OPTIONS
SUBTARGET_OVERRIDE_INTERNAL_OPTIONS;
+2019-02-11 Stefan Agner <stefan@agner.ch>
+
+ Backport from mainline
+ 2019-01-10 Stefan Agner <stefan@agner.ch>
+
+ PR target/88648
+ * gcc.target/arm/pr88648-asm-syntax-unified.c: Add test to
+ check if -masm-syntax-unified gets applied properly.
+
2019-02-10 Harald Anlauf <anlauf@gmx.de>
Backport from trunk
--- /dev/null
+/* Test for unified syntax assembly generation. */
+/* { dg-do compile } */
+/* { dg-require-effective-target arm_arch_v7a_ok } */
+/* { dg-add-options arm_arch_v7a } */
+/* { dg-options "-marm -march=armv7-a -masm-syntax-unified" } */
+
+void test ()
+{
+ asm("nop");
+}
+
+/* { dg-final { scan-assembler-times {\.syntax\sunified} 3 } } */
+/* { dg-final { scan-assembler-not {\.syntax\sdivided} } } */
+