From patchwork Wed Apr 24 10:20:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu Ianculescu X-Patchwork-Id: 1090048 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-499597-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="B+/iceId"; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="GtXjYD9/"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44pxDP02qNz9s7T for ; Wed, 24 Apr 2019 20:21:06 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; q=dns; s=default; b=DUE AZHkpnPDsrFWXiubbHb7E8CRnMVWzI38T+VP9u/EHzFTmreXHOTHzZFkakc6BOVF os2OAWPdGrBbvTCB1Z52yoAU4rSgGbOZqi7bDYpUEGrnW1A27Ldip083i8D1y71k rQQh7cCoHhigzYDtW+T4hVyPGxSzoh0xPJ1DNgkk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=default; bh=3kynOj/2V ZeE2Gvy8koh89ZnEQk=; b=B+/iceIdESEm4EZKjvFuTIBjbD8pnJ13Vv/Y6StU2 jnkO2KnSt7u9VI4RJA3uZsQ9ODO9YGI+Aazi3ay3cjdxY2r2LzpZX8G5NKD+eAT0 HoMgcxCHq6CB8yy79vzQh/E7TAlQ7BMu9ihO70m+FGF+HOCgj2N9Izy9P7S0BUql PI= Received: (qmail 127478 invoked by alias); 24 Apr 2019 10:20:59 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 127453 invoked by uid 89); 24 Apr 2019 10:20:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-14.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=na, NA, n.a, N.A X-HELO: mail-yb1-f171.google.com Received: from mail-yb1-f171.google.com (HELO mail-yb1-f171.google.com) (209.85.219.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 24 Apr 2019 10:20:57 +0000 Received: by mail-yb1-f171.google.com with SMTP id e190so6910098ybf.2 for ; Wed, 24 Apr 2019 03:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VoWeEElriKTUDfWIoHspNElBDcuPay0lZZwGBJdi7RA=; b=GtXjYD9/ZtZlfAc5OB5Xpsj71SybilBsSP/g4F0gqqbprxbZjeyUkZJZ/+eoz0HR71 ibC/XyNaU4jQh+wYuGmLy2tTAJ1bYfDsDrv0HoIGWuLGD5S+7WfX9DKRTBmmGuA4LEJN WP5rX7fpHhSEdoFBsDqYq3YHTiDDtsbfShOfuYUMYvSkU2Y+jFR2fRn+HuLtu7j6pm0Z yYX8KL/a4EPePJnWJW/0JZR25rQ2ueFgAmNhypejPWECwCnQ9qsW0eXzGM2160eBnkLC F1gBMtKR29CwHCVoqQj6Ly9rq3BG6cwhSew5vHRWEht0u8GS3LceMPy1N8rPpPQ7uzyw wJVQ== Received: from localhost.localdomain ([193.187.151.25]) by smtp.gmail.com with ESMTPSA id s127sm9647614yws.66.2019.04.24.03.20.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2019 03:20:55 -0700 (PDT) From: Claudiu Zissulescu To: gcc-patches@gcc.gnu.org Cc: andrew.burgess@embecosm.com, fbedard@synopsys.com, jakub@redhat.com Subject: [PATCH] [ARC][COMMITTED] Fix typos. Date: Wed, 24 Apr 2019 13:20:28 +0300 Message-Id: <20190424102044.11323-1-claziss@gmail.com> In-Reply-To: <20190417185316.GF4324@redhat.com> References: <20190417185316.GF4324@redhat.com> MIME-Version: 1.0 X-IsSubscribed: yes From: claziss gcc/ xxxx-xx-xx Claudiu Zissulescu * config/arc/arc-options.def: Fix typos and spelling mistakes. * config/arc/arc.c (arc_init): Cleanup warning message. (arc_override_options): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@270540 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/arc/arc-options.def | 12 ++++++------ gcc/config/arc/arc.c | 18 ++++++++++-------- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ba06d65583c..1c70df7ce96 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-04-24 Claudiu Zissulescu + + * config/arc/arc-options.def: Fix typos and spelling mistakes. + * config/arc/arc.c (arc_init): Cleanup warning message. + (arc_override_options): Likewise. + 2019-04-24 Jakub Jelinek PR target/90187 diff --git a/gcc/config/arc/arc-options.def b/gcc/config/arc/arc-options.def index a521b6f9b4e..4b2dcb16e6c 100644 --- a/gcc/config/arc/arc-options.def +++ b/gcc/config/arc/arc-options.def @@ -68,9 +68,9 @@ ARC_OPT (FL_SWAP, (1ULL << 7), MASK_SWAP_SET, "swap") ARC_OPT (FL_MUL64, (1ULL << 8), MASK_MUL64_SET, "mul64") ARC_OPT (FL_MUL32x16, (1ULL << 9), MASK_MULMAC_32BY16_SET, "mul32x16") -ARC_OPT (FL_EA, (1ULL << 11), MASK_EA_SET, "extended arithmetics") -ARC_OPT (FL_SPFP, (1ULL << 12), MASK_SPFP_COMPACT_SET, "single precission FPX") -ARC_OPT (FL_DPFP, (1ULL << 13), MASK_DPFP_COMPACT_SET, "double precission FPX") +ARC_OPT (FL_EA, (1ULL << 11), MASK_EA_SET, "extended arithmetic") +ARC_OPT (FL_SPFP, (1ULL << 12), MASK_SPFP_COMPACT_SET, "single precision FPX") +ARC_OPT (FL_DPFP, (1ULL << 13), MASK_DPFP_COMPACT_SET, "double precision FPX") ARC_OPT (FL_ARGONAUT, (1ULL << 14), MASK_ARGONAUT_SET, "argonaut") ARC_OPT (FL_SIMD, (1ULL << 15), MASK_SIMD_SET, "simd") @@ -101,9 +101,9 @@ ARC_OPTX (FL_FPU_FPUD_FMA, (1ULL << 36), arc_fpu_build, FPU_FPUD_FMA, "mfpu", " ARC_OPTX (FL_FPU_FPUD_ALL, (1ULL << 37), arc_fpu_build, FPU_FPUD_ALL, "mfpu", "fpud_all") ARC_OPTX (FL_FPX_QUARK, (1ULL << 38), arc_fpu_build, FPX_QK, "quarkse fp", "N.A.") -ARC_OPT (FL_FPUS, (0xFULL << 26), 0, "single precission floating point") -ARC_OPT (FL_FPUDA, (0xFFULL << 26), 0, "double precission fp assist") -ARC_OPT (FL_FPUD, (0xF0FULL << 26), 0, "double precission floating point") +ARC_OPT (FL_FPUS, (0xFULL << 26), 0, "single precision floating point") +ARC_OPT (FL_FPUDA, (0xFFULL << 26), 0, "double precision fp assist") +ARC_OPT (FL_FPUD, (0xF0FULL << 26), 0, "double precision floating point") ARC_OPT (FL_QUARK, (1ULL << 38), 0, "Quark SE fp extension") /* Local Variables: */ diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index 1a04f9ef793..2f5753b02fa 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -955,8 +955,7 @@ arc_init (void) /* Warn for unimplemented PIC in pre-ARC700 cores, and disable flag_pic. */ if (flag_pic && TARGET_ARC600_FAMILY) { - warning (0, - "PIC is not supported for %s. Generating non-PIC code only", + warning (0, "PIC is not supported for %qs", arc_cpu_string); flag_pic = 0; } @@ -1218,30 +1217,33 @@ arc_override_options (void) option is not allowed. Extra, check options against default architecture/cpu flags and throw an warning if we find a mismatch. */ + /* TRANSLATORS: the DOC/DOC0/DOC1 are strings which shouldn't be + translated. They are like keywords which one can relate with the + architectural choices taken for an ARC CPU implementation. */ #define ARC_OPTX(NAME, CODE, VAR, VAL, DOC0, DOC1) \ do { \ if ((!(arc_selected_cpu->arch_info->flags & CODE)) \ && (VAR == VAL)) \ - error ("option %s=%s is not available for %s CPU", \ + error ("option %<%s=%s%> is not available for %qs CPU", \ DOC0, DOC1, arc_selected_cpu->name); \ if ((arc_selected_cpu->arch_info->dflags & CODE) \ && (VAR != DEFAULT_##VAR) \ && (VAR != VAL)) \ - warning (0, "option %s is ignored, the default value %s" \ - " is considered for %s CPU", DOC0, DOC1, \ + warning (0, "option %qs is ignored, the default value %qs" \ + " is considered for %qs CPU", DOC0, DOC1, \ arc_selected_cpu->name); \ } while (0); #define ARC_OPT(NAME, CODE, MASK, DOC) \ do { \ if ((!(arc_selected_cpu->arch_info->flags & CODE)) \ && (target_flags & MASK)) \ - error ("option %s is not available for %s CPU", \ + error ("option %qs is not available for %qs CPU", \ DOC, arc_selected_cpu->name); \ if ((arc_selected_cpu->arch_info->dflags & CODE) \ && (target_flags_explicit & MASK) \ && (!(target_flags & MASK))) \ - warning (0, "unset option %s is ignored, it is always" \ - " enabled for %s CPU", DOC, \ + warning (0, "unset option %qs is ignored, it is always" \ + " enabled for %qs CPU", DOC, \ arc_selected_cpu->name); \ } while (0);