On 05/20/2016 12:09 PM, John David Anglin wrote:
On 2016-05-18 2:20 AM, Jakub Jelinek wrote:
On Tue, May 17, 2016 at 08:31:00PM -0400, John David Anglin wrote:
>r235550 introduced the use of long long, and the macros LLONG_MIN
and LLONG_MAX. These macros
>are not defined by default and we need to include <climits> when
compiling with c++ to define them.
IMNSHO we should get rid of those long long uses instead and just use
int64_t and INTTYPE_MINIMUM (int64_t) and INTTYPE_MAXIMUM (int64_t).
There is also another use of long long in libcpp, we should also replace
that.
The attached change implements the above. There is an implicit
assumption that int64_t
is long long if it is not long.
The patch also changes gcov-tool.c. This affects the interface somewhat
but
I think consistently using int64_t better.
Tested on hppa2.0w-hp-hpux11.11. Okay for trunk?
Dave
--
John David Anglin dave.ang...@bell.net
longlong.d.txt
2016-05-20 John David Anglin <dang...@gcc.gnu.org>
PR bootstrap/71014
* c-common.c (get_source_date_epoch): Use int64_t instead of long long.
* gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
(do_rewrite): likewise.
* line-map.c (location_adhoc_data_update): Use int64_t instead of
long long.
(get_combined_adhoc_loc): Likewise.
OK. Please install if you haven't already.
jeff