From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81456 invoked by alias); 1 Jan 2019 23:34:58 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 81441 invoked by uid 89); 1 Jan 2019 23:34:57 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:U*nickc, HTo:D*redhat.com, HContent-Transfer-Encoding:8bit X-HELO: mail.kmu-office.ch Received: from mail.kmu-office.ch (HELO mail.kmu-office.ch) (178.209.48.109) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 Jan 2019 23:34:55 +0000 Received: from allenwind.lan (unknown [IPv6:2a02:169:3465::cdc]) by mail.kmu-office.ch (Postfix) with ESMTPSA id 6F6985C00F7; Wed, 2 Jan 2019 00:34:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1546385693; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=bndmLL9ygIdHMViy1KxeYpeKF5sZfZ087Jmo36OXJqQ=; b=QifJVA28JgWDmnVUMOYesz4Pabz8XHHu3RbeXru/8ZY4sjlQ6cyHkMGXL4ngd1s97wJRNP ME+5AsW9OaTGea64S7AsGRc9N0gm5HFqNj3eetd1p1Hnk3hrkAHamah/H9wOggEipy7DNy M9GECOdTBJiZHr34APVl7MT99WnGXYQ= From: Stefan Agner To: nickc@redhat.com, richard.earnshaw@arm.com, ramana.radhakrishnan@arm.com, kyrylo.tkachov@arm.com Cc: gcc-patches@gcc.gnu.org, Stefan Agner Subject: [PATCH] ARM: fix -masm-syntax-unified (PR88648) Date: Tue, 01 Jan 2019 23:34:00 -0000 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00018.txt.bz2 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