ARM: fix -masm-syntax-unified (PR88648)
authorStefan Agner <stefan@agner.ch>
Thu, 10 Jan 2019 11:36:42 +0000 (12:36 +0100)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Thu, 10 Jan 2019 11:36:42 +0000 (11:36 +0000)
commitae8792cb3b49225e37d530c8e35f6608c5eb8492
tree11b17aff511f99ac81bd1bc19c6171a90b11a5b9
parent7c4979b2b2f4d70f9e1ab8ba5fa3daeb0d5ace77
ARM: fix -masm-syntax-unified (PR88648)

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.

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: r267804
gcc/ChangeLog
gcc/config/arm/arm.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pr88648-asm-syntax-unified.c [new file with mode: 0644]