From 4c219c2e69bb66a5535645e2c83fafda1362acea Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 11 Dec 2014 16:02:35 +1030 Subject: Use autoconf check for long long in binutils Also fix a place where %lld was wrongly used to print a dwarf_vma. * configure.ac: Check for long long and sizes of long long and long. * elfcomm.h (HOST_WIDEST_INT): Test HAVE_LONG_LONG in place of __STDC_VERSION__ and __GNUC__. * strings.c (print_strings): Likewise. * dwarf.c (DWARF_VMA_FMT, DWARF_VMA_FMT_LONG): Likewise. (read_debug_line_header): Use dwarf_vmatoa to print warning. * configure: Regenerate. * config.in: Regenerate. --- binutils/elfcomm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'binutils/elfcomm.h') diff --git a/binutils/elfcomm.h b/binutils/elfcomm.h index 4fd2d6c..f7f7544 100644 --- a/binutils/elfcomm.h +++ b/binutils/elfcomm.h @@ -29,7 +29,7 @@ void error (const char *, ...) ATTRIBUTE_PRINTF_1; void warn (const char *, ...) ATTRIBUTE_PRINTF_1; -#if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2) +#if defined HAVE_LONG_LONG && SIZEOF_LONG_LONG > SIZEOF_LONG /* We can't use any bfd types here since readelf may define BFD64 and objdump may not. */ #define HOST_WIDEST_INT long long -- cgit v1.1