+2015-01-08 John David Anglin <danglin@gcc.gnu.org>
+
+ PR gcov-profile/61790
+ * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
+ long long. Fallback to int64_t if host doesn't have long long and
+ use strtol if int64_t is long. Otherwise, use sscanf for conversion.
+
2015-01-08 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/63989
int opt;
int ret;
const char *output_dir = 0;
+#ifdef HAVE_LONG_LONG
long long normalize_val = 0;
+#else
+ int64_t normalize_val = 0;
+#endif
float scale = 0.0;
int numerator = 1;
int denominator = 1;
break;
case 'n':
if (!do_scaling)
- normalize_val = atoll (optarg);
+#if defined(HAVE_LONG_LONG)
+ normalize_val = strtoll (optarg, (char **)NULL, 10);
+#elif defined(INT64_T_IS_LONG)
+ normalize_val = strtol (optarg, (char **)NULL, 10);
+#else
+ sscanf (optarg, "%" SCNd64, &normalize_val);
+#endif
else
fnotice (stderr, "scaling cannot co-exist with normalization,"
" skipping\n");