From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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 Content-Type: multipart/mixed; boundary="Apple-Mail-5-159956247" Subject: [PATCH] Use sscanf instead of atoll in gcov-tool.c MIME-Version: 1.0 (Apple Message framework v936) Date: Sun, 07 Sep 2014 17:36:00 -0000 X-SW-Source: 2014-09/txt/msg00566.txt.bz2 --Apple-Mail-5-159956247 Content-Type: text/plain; charset="US-ASCII"; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Content-length: 207 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 --Apple-Mail-5-159956247 Content-Disposition: attachment; filename="gcov-tool.c.d.txt" Content-Type: text/plain; x-unix-mode=0644; name="gcov-tool.c.d.txt" Content-Transfer-Encoding: 7bit Content-length: 597 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"); --Apple-Mail-5-159956247--