From patchwork Sun Sep 7 17:36:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 386728 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 6FB3A1400BB for ; Mon, 8 Sep 2014 03:36:38 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:from:to:content-type:subject:mime-version:date; q= dns; s=default; b=VKobEkEpPxJW15o4m94DV256M2om+oWbwcWAHWPfLGrNL/ Mi1ZVBmyZiYGWQU9gXYUmD7GAghLuxNg7ZsMr+/9DMS0+T+C5prp7l85MJ0wvXBs ncee0ukW1e1U8fExoX1e0II9A+Z+JH6DORXk1Ob92BxyytwlyCASmFxUnxhEs= 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 :message-id:from:to:content-type:subject:mime-version:date; s= default; bh=SS8ZXm2c29+zfu3NWSWLrU3mj1E=; b=mVtUYmdUO5TATmY6sr7a RVU8yaVVXC3R3g/YpN98eYV+PVVa10YQQGj/PznDOJo6YjxkelbUmrVKMNoJok7i /xHjSUAZXk2HUln46WiEvwkYZcqLPZ/pJJ1o/p+otZypqJpjioPWMm36ERPiroeV 1ngnULi4hM5HPSuDOOmAMXo= Received: (qmail 26582 invoked by alias); 7 Sep 2014 17:36:31 -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 26568 invoked by uid 89); 7 Sep 2014 17:36:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 X-HELO: BLU004-OMC3S1.hotmail.com Received: from blu004-omc3s1.hotmail.com (HELO BLU004-OMC3S1.hotmail.com) (65.55.116.76) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA256 encrypted) ESMTPS; Sun, 07 Sep 2014 17:36:28 +0000 Received: from BLU437-SMTP106 ([65.55.116.73]) by BLU004-OMC3S1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22724); Sun, 7 Sep 2014 10:36:26 -0700 X-TMN: [i/6PN2xRH3O2pnTBJbYxXrwC3ST++Kg1] Message-ID: Received: from [192.168.2.16] ([174.92.95.53]) by smtphm.sympatico.ca over TLS secured channel with Microsoft SMTPSVC(8.0.9200.16384); Sun, 7 Sep 2014 10:36:25 -0700 From: John David Anglin To: GCC Patches Subject: [PATCH] Use sscanf instead of atoll in gcov-tool.c MIME-Version: 1.0 (Apple Message framework v936) Date: Sun, 7 Sep 2014 13:36:09 -0400 The attached patch fixes bootstrap on hpux which doesn't have the atoll function. Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11. OK for trunk? Dave --- John David Anglin dave.anglin@bell.net 2014-09-07 John David Anglin PR gcpv-profile/61790 * gcov-tool.c (do_rewrite): Use sscanf instead of atoll. Index: gcov-tool.c =================================================================== --- gcov-tool.c (revision 214998) +++ gcov-tool.c (working copy) @@ -308,7 +308,7 @@ break; case 'n': if (!do_scaling) - normalize_val = atoll (optarg); + sscanf (optarg, "%lld", &normalize_val); else fnotice (stderr, "scaling cannot co-exist with normalization," " skipping\n");