From patchwork Mon Mar 7 10:27:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 51608 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EDC803858405 for ; Mon, 7 Mar 2022 10:27:50 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by sourceware.org (Postfix) with ESMTPS id 874083858D35 for ; Mon, 7 Mar 2022 10:27:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 874083858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 5B325210FE; Mon, 7 Mar 2022 10:27:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1646648853; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9/M2BfZqiESHwoVSSjTiedyXUVp7+Xxow6u/NMuC+lM=; b=ThrcKdtKkfq9wLqzsH7DYVUaGKfTgmLPlNTh66v/OoYI4FAaRvLULB+o/q/XwVCmqwr18R bqVGCxI73PRigknYbRJuDG3MbSoSI/mTWgh2VkmTmaQNFWydPqSrTCsMUFLjQvUi4THNY0 L/6wcwrqXunKMaWOm927rx6HqDO0JoQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1646648853; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9/M2BfZqiESHwoVSSjTiedyXUVp7+Xxow6u/NMuC+lM=; b=eymo5zEVETLte2fDmVM3EKu6MjoIdYuQoM68jlKuC/9E5ga+0Tv2V5KGGM9JzZNloYZ6ou bfOE2RGLLXBV/BBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 4198E139F9; Mon, 7 Mar 2022 10:27:33 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id aL3vDhXeJWKILAAAMHmgww (envelope-from ); Mon, 07 Mar 2022 10:27:33 +0000 Message-ID: Date: Mon, 7 Mar 2022 11:27:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 From: =?utf-8?q?Martin_Li=C5=A1ka?= Subject: [PATCH] arm: fix option quoting in error messages. To: gcc-patches@gcc.gnu.org Content-Language: en-US X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christophe Lyon Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" This fixes option quoting in error messages. Ready to be installed? Thanks, Martin PR target/104794 gcc/ChangeLog: * config/arm/arm.cc (arm_option_override_internal): Fix quoting of options in error messages. (arm_option_reconfigure_globals): Likewise. --- gcc/config/arm/arm.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc index c1103d9fad6..4bf1ef0517d 100644 --- a/gcc/config/arm/arm.cc +++ b/gcc/config/arm/arm.cc @@ -3185,8 +3185,8 @@ arm_option_override_internal (struct gcc_options *opts, if (arm_stack_protector_guard == SSP_GLOBAL && opts->x_arm_stack_protector_guard_offset_str) { - error ("incompatible options %'-mstack-protector-guard=global%' and" - "%'-mstack-protector-guard-offset=%qs%'", + error ("incompatible options %<-mstack-protector-guard=global%> and" + "%<-mstack-protector-guard-offset=%s%>", arm_stack_protector_guard_offset_str); } @@ -3880,7 +3880,7 @@ arm_option_reconfigure_globals (void) } if (!TARGET_HARD_TP && arm_stack_protector_guard == SSP_TLSREG) - error("%'-mstack-protector-guard=tls%' needs a hardware TLS register"); + error("%<-mstack-protector-guard=tls%> needs a hardware TLS register"); } /* Perform some validation between the desired architecture and the rest of the