From patchwork Wed Jan 10 19:01:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prathamesh Kulkarni X-Patchwork-Id: 124130 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5635767qgn; Wed, 10 Jan 2018 11:01:33 -0800 (PST) X-Google-Smtp-Source: ACJfBouVk/TBppDFJ4t+RqlM99aXyMadxlzSBTnunXvAlqpBkLNZ7aaiild36AfLB8ScPvPZdb2S X-Received: by 10.99.53.14 with SMTP id c14mr15879289pga.321.1515610893583; Wed, 10 Jan 2018 11:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515610893; cv=none; d=google.com; s=arc-20160816; b=oypB83vsx6hEWE8vLN68nTsr53vkg8iTFPi6EdMmb/w7mFLreGvV12OiFJCzrwM0qQ XAcSBE7GDO3lxEJtvpz7TARvwVrGovKpaJGeSfnIjQZmAVq533PS3EmC9hi1MLlY2qnw tE0wcrq50pOjm8LlMdZnxdm8PoWvWWanQ8fkr1T8FF287UoGS8dzNV7v+fFkQGkSKRRU 5BKoaFRVtSZfp7yH61KedKd5MpKGi9GJp7+DhWJ16KvgTZ18I3696vQVuCUolu2KyB49 PXtCvG+DHtO5FNjHj7r313uafQuYQk0OwLEFa5ruTvNm1Hwkks586bHeo8CbQb/4Vwj9 P5wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:delivered-to:sender :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=clyhWwB2HtRrDCzbu4SOKQOfCwEvv7zinUnRGIF5xis=; b=atBNwL6d0m1srfvAVzInuwkHO3uE26bFmpv8wg8442r2F2wg9UxZwq4dd8oc0ecAlR n2edw4Xf8XXkdIi3blgW/7gIdfiGNCiyjjqFe//knOmfzd+dW9mFYPPPCCdzMMwKSWkL +KfjrLu0AhDt+Q2XF6oHkGrToShtE1P5No0H205CuxXydCC1HMHrUuYkOFm0qJawEfCq YIiWalWLyl1WYKKNFTSvozVu0wxlp7rpkQ/nQxvOGIZQmCf6OmpGlEZ6zIVNMjHZhX29 aGI7dW3NPOreDm/IZ3SDhEvldYbKRE1UBdVCM8GWnVJORRLkWEG7Ndv+7s/DAzmH537Q 5dYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=myMR5NBt; spf=pass (google.com: domain of gcc-patches-return-470720-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-470720-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id o21si10848431pgv.641.2018.01.10.11.01.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jan 2018 11:01:33 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-470720-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=myMR5NBt; spf=pass (google.com: domain of gcc-patches-return-470720-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-470720-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=SKJ+PB5lcztIntyfDG0ATFFLCHekYCiJfJHjEdYLPnB3IY Yxx0qWEdDq+yOWiXw2kqGFHIe+iSuzuNHhaw1bq5MwG/NQawdzwYYJMi8YdAjdop NoSr7gDzFUPdhfkSdNvyR5yAyUxYD29dKGbfGKpH7A7nnyN4M9so1DyEpoVJk= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=iyIhkOa7NJBm5ZqU4fnqWVZmOko=; b=myMR5NBtnzmHs5LhqsXw 5PGmv5jhYKHOJT9t9NbikIiRmZroG16xDqEBn/6zMv2qWDgcuOqDU+STrGv3JSw/ 978fv0yWzwjlL4JZSUaPBL4ADXtAw0rcHpqmroERQyF7uZf3tes4ob4mEPKaIeuP EqWNuAx2ZpGN3hng5oTN/Gw= Received: (qmail 67652 invoked by alias); 10 Jan 2018 19:01:23 -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 67628 invoked by uid 89); 10 Jan 2018 19:01:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.6 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr0-f180.google.com Received: from mail-wr0-f180.google.com (HELO mail-wr0-f180.google.com) (209.85.128.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 10 Jan 2018 19:01:21 +0000 Received: by mail-wr0-f180.google.com with SMTP id o7so8668wro.8 for ; Wed, 10 Jan 2018 11:01:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=xg6d/+yDCnKbFIl6pqfzOFsZVv7LNro+SzlL7yIhWU4=; b=Grh5G3JdI8SNi0awTdpgTy/w41bttXqNmVOGpKAd2Q1xVq+/v2b8jeowFlKbr0VdQF 7FDbciQqzzGYN+mqxSP+3XmfELJDb6qwsuxEooHBeRsR3S2uze7vH9XiEVr2tNqc7sLp LYvq246a13jjTbyeYJQXTG5PsvJOwg8AqjVuOwvzBMeBjEljzIarGFnfpkMTAk19qJsQ 1Hhyafc8q48cGzB9Gy5/ov7gQ2Zka6a8q6HZtOnaVsmES34i03m50bjY440/tOOqCFlB rq5DsG/jBLhbrTX73ZKgbVB/ZlJNi3KYSWUpm8xEJcMWNLmiA9EEEaFLJMk1Ntaa4BAe Bldg== X-Gm-Message-State: AKGB3mLVX9V7ZF5mgptliT/aQhRA5qaGHsxElLe99Wrd5EQElpkqN6ah SEC/5fpf6aJZnAcDxTaSgmo5xZ2xwk4j5tai79th3A== X-Received: by 10.223.162.195 with SMTP id t3mr16963119wra.237.1515610879192; Wed, 10 Jan 2018 11:01:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.223.179.81 with HTTP; Wed, 10 Jan 2018 11:01:17 -0800 (PST) From: Prathamesh Kulkarni Date: Thu, 11 Jan 2018 00:31:17 +0530 Message-ID: Subject: PR83775 To: Kyrill Tkachov , gcc Patches X-IsSubscribed: yes Hi, The attached patch tries to fix PR83775. Validation in progress. OK to commit if passes ? Thanks, Prathamesh 2018-01-11 Prathamesh Kulkarni PR target/83775 * config/arm/arm.c (arm_declare_function_name): Set arch_to_print if targ_options->x_arm_arch_string is non NULL. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 196aa6de1ac..868251a154c 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -30954,7 +30954,10 @@ arm_declare_function_name (FILE *stream, const char *name, tree decl) /* Only update the assembler .arch string if it is distinct from the last such string we printed. */ - std::string arch_to_print = targ_options->x_arm_arch_string; + std::string arch_to_print; + if (targ_options->x_arm_arch_string) + arch_to_print = targ_options->x_arm_arch_string; + if (arch_to_print != arm_last_printed_arch_string) { std::string arch_name