[Bug gcov-profile/61790] [5 Regression] gcov-tool.c uses atoll
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 18 15:15:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61790
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As libiberty has now strtoll/strtoull functions, guess you could use that.
You'll need to guard it with #ifdef HAVE_LONG_LONG, but if the host doesn't
have long long, you'd better not use it in the code either. I'd say int64_t
should be used instead of long long, and if HAVE_LONG_LONG is not defined,
instead of strtoll you should use just strtol.
More information about the Gcc-bugs
mailing list