This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/61790] [5 Regression] gcov-tool.c uses atoll
- From: "danglin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Jan 2015 00:51:21 +0000
- Subject: [Bug gcov-profile/61790] [5 Regression] gcov-tool.c uses atoll
- Auto-submitted: auto-generated
- References: <bug-61790-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61790
--- Comment #6 from John David Anglin <danglin at gcc dot gnu.org> ---
Author: danglin
Date: Fri Jan 9 00:50:49 2015
New Revision: 219372
URL: https://gcc.gnu.org/viewcvs?rev=219372&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gcov-tool.c