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.ang...@bell.net
2014-09-07 John David Anglin <dang...@gcc.gnu.org>
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");