aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2003-08-27 17:43:39 +0000
committerIan Lance Taylor <ian@airs.com>2003-08-27 17:43:39 +0000
commitec317fb15734bd40e97f49c0f4718a5e316f5a22 (patch)
tree062b90283c965fecc23c0125dbb761142da9c67c /bfd/bfd-in.h
parentba058b661774f984d1ac3d6563a323e098ff92b6 (diff)
downloadgdb-ec317fb15734bd40e97f49c0f4718a5e316f5a22.zip
gdb-ec317fb15734bd40e97f49c0f4718a5e316f5a22.tar.gz
gdb-ec317fb15734bd40e97f49c0f4718a5e316f5a22.tar.bz2
* configure.in: Define and substitute BFD_HOST_LONG_LONG.
* bfd-in.h: Define BFD_HOST_LONG_LONG. Test it rather than __GNUC__ when deciding whether to use long long for BFD_HOST_64_BIT. * configure, Makefile.in, doc/Makefile.in, bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/bfd-in.h')
-rw-r--r--bfd/bfd-in.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 63c86f7..49ebee7 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -51,6 +51,7 @@ extern "C" {
#define BFD_DEFAULT_TARGET_SIZE @bfd_default_target_size@
#define BFD_HOST_64BIT_LONG @BFD_HOST_64BIT_LONG@
+#define BFD_HOST_LONG_LONG @BFD_HOST_LONG_LONG@
#if @BFD_HOST_64_BIT_DEFINED@
#define BFD_HOST_64_BIT @BFD_HOST_64_BIT@
#define BFD_HOST_U_64_BIT @BFD_HOST_U_64_BIT@
@@ -96,21 +97,19 @@ typedef int bfd_boolean;
/* Support for different sizes of target format ints and addresses.
If the type `long' is at least 64 bits, BFD_HOST_64BIT_LONG will be
- set to 1 above. Otherwise, if gcc is being used, this code will
- use gcc's "long long" type. Otherwise, BFD_HOST_64_BIT must be
- defined above. */
+ set to 1 above. Otherwise, if the host compiler used during
+ configuration supports long long, this code will use it.
+ Otherwise, BFD_HOST_64_BIT must be defined above. */
#ifndef BFD_HOST_64_BIT
# if BFD_HOST_64BIT_LONG
# define BFD_HOST_64_BIT long
# define BFD_HOST_U_64_BIT unsigned long
# else
-# ifdef __GNUC__
-# if __GNUC__ >= 2
+# if BFD_HOST_LONG_LONG
# define BFD_HOST_64_BIT long long
# define BFD_HOST_U_64_BIT unsigned long long
-# endif /* __GNUC__ >= 2 */
-# endif /* ! defined (__GNUC__) */
+# endif /* ! BFD_HOST_LONG_LONG */
# endif /* ! BFD_HOST_64BIT_LONG */
#endif /* ! defined (BFD_HOST_64_BIT) */