[Bug gcov-profile/61790] [5 Regression] gcov-tool.c uses atoll

dave.anglin at bell dot net gcc-bugzilla@gcc.gnu.org
Wed Nov 19 04:48:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61790

--- Comment #5 from dave.anglin at bell dot net ---
On 18-Nov-14, at 10:15 AM, jakub at gcc dot gnu.org wrote:

> 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.

I already had changed to using the functions from libiberty.  Testing  
the attached change.

--
John David Anglin    dave.anglin@bell.net



More information about the Gcc-bugs mailing list