public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] ARM: fix -masm-syntax-unified (PR88648)
@ 2019-01-01 23:34 Stefan Agner
  2019-01-08  9:33 ` Kyrill Tkachov
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Agner @ 2019-01-01 23:34 UTC (permalink / raw)
  To: nickc, richard.earnshaw, ramana.radhakrishnan, kyrylo.tkachov
  Cc: gcc-patches, Stefan Agner

This allows to use unified asm syntax when compiling for the
ARM instruction. This matches documentation and seems what the
initial patch was intended doing when the flag got added.
---
 gcc/config/arm/arm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 3419b6bd0f8..67b2b199f3f 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -3095,7 +3095,8 @@ arm_option_override_internal (struct gcc_options *opts,
 
   /* 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;
-- 
2.20.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-02-11  9:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01 23:34 [PATCH] ARM: fix -masm-syntax-unified (PR88648) Stefan Agner
2019-01-08  9:33 ` Kyrill Tkachov
2019-01-08  9:36   ` Kyrill Tkachov
2019-01-10 11:38   ` Kyrill Tkachov
2019-02-09 16:25     ` Stefan Agner
2019-02-11  9:27       ` Kyrill Tkachov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).