Get rid of BFD_VMA_FMT

Remove the BFD_VMA_FMT defines in bfd.h and configure support.

	* bfd-in.h (BFD_VMA_FMT): Don't define.
	* configure.ac (BFD_INT64_FMT): Remove configure test.
	* configure.com: Likewise.
	* Makefile.in: Regenerate.
	* bfd-in2.h: Regenerate.
	* configure: Regenerate.
This commit is contained in:
Alan Modra
2022-08-04 12:49:03 +09:30
parent 29136be7df
commit 4900c4e60c
6 changed files with 2 additions and 69 deletions

38
bfd/configure vendored
View File

@@ -652,7 +652,6 @@ TDEFINES
SHARED_LIBADD
SHARED_LDFLAGS
LIBM
BFD_INT64_FMT
zlibinc
zlibdir
EXEEXT_FOR_BUILD
@@ -11087,7 +11086,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 11090 "configure"
#line 11089 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11193,7 +11192,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
#line 11196 "configure"
#line 11195 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13034,39 +13033,6 @@ $as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking printf int64_t format" >&5
$as_echo_n "checking printf int64_t format... " >&6; }
if ${bfd_cv_int64_fmt+:} false; then :
$as_echo_n "(cached) " >&6
else
for style in I64 ll l; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#define __STDC_FORMAT_MACROS 1
#include <stdio.h>
#include <inttypes.h>
extern char PRId64_probe[sizeof PRId64 == sizeof "${style}d" ? 1 : -1];
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
bfd_cv_int64_fmt=${style}
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
done
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_int64_fmt" >&5
$as_echo "$bfd_cv_int64_fmt" >&6; }
BFD_INT64_FMT=\"$bfd_cv_int64_fmt\"
# Check if linker supports --as-needed and --no-as-needed options
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
$as_echo_n "checking linker --as-needed support... " >&6; }