diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-07-19 00:48:20 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-07-19 00:48:20 +0000 |
commit | f4e14cb90109af6fd725477394fa363046cf12d8 (patch) | |
tree | b572cb3b5294c973e7c1cf9fa1c3ca9b00da6697 /bfd/bfd-in2.h | |
parent | 0f612729476b771826f8ee47af3eacad87dcffed (diff) | |
download | gdb-f4e14cb90109af6fd725477394fa363046cf12d8.zip gdb-f4e14cb90109af6fd725477394fa363046cf12d8.tar.gz gdb-f4e14cb90109af6fd725477394fa363046cf12d8.tar.bz2 |
* configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
(replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT. Add bfd-in2.h:bfd-in2.h
to AC_OUTPUT call.
* configure: Rebuild.
* bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
(BFD_HOST_64_BIT): Define conditionally.
(BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
(bfd_vma): Typedef as BFD_HOST_U_64_BIT.
(symvalue, bfd_size_type): Likewise.
* bfd-in2.h: Rebuild.
* Makefile.in (do_clean): Remove bfd-tmp.h.
(do_distclean): Remove bfd-in3.h.
(stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
(bfd-in3.h): New target.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index d6f7702..0bd9c8b 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -53,8 +53,12 @@ extern "C" { /* These two lines get substitutions done by commands in Makefile.in. */ #define BFD_VERSION "@VERSION@" -#define BFD_ARCH_SIZE @WORDSIZE@ +#define BFD_ARCH_SIZE @wordsize@ #define BFD_HOST_64BIT_LONG @BFD_HOST_64BIT_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@ +#endif #if BFD_ARCH_SIZE >= 64 #define BFD64 @@ -114,27 +118,29 @@ typedef long int file_ptr; /* 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, the compilation will fail - if 64-bit targets are requested. */ + use gcc's "long long" type. Otherwise, BFD_HOST_64_BIT must be + defined above. */ #ifdef BFD64 #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__ #define BFD_HOST_64_BIT long long +#define BFD_HOST_U_64_BIT unsigned long long #else /* ! defined (__GNUC__) */ #error No 64 bit integer type available #endif /* ! defined (__GNUC__) */ #endif /* ! BFD_HOST_64BIT_LONG */ #endif /* ! defined (BFD_HOST_64_BIT) */ -typedef unsigned BFD_HOST_64_BIT bfd_vma; +typedef BFD_HOST_U_64_BIT bfd_vma; typedef BFD_HOST_64_BIT bfd_signed_vma; -typedef unsigned BFD_HOST_64_BIT bfd_size_type; -typedef unsigned BFD_HOST_64_BIT symvalue; +typedef BFD_HOST_U_64_BIT bfd_size_type; +typedef BFD_HOST_U_64_BIT symvalue; #ifndef fprintf_vma #if BFD_HOST_64BIT_LONG @@ -1198,9 +1204,9 @@ enum bfd_architecture bfd_arch_powerpc, /* PowerPC */ bfd_arch_rs6000, /* IBM RS/6000 */ bfd_arch_hppa, /* HP PA RISC */ -/* start-sanitize-d10v */ + /* start-sanitize-d10v */ bfd_arch_d10v, /* Mitsubishi D10V */ -/* end-sanitize-d10v */ + /* end-sanitize-d10v */ bfd_arch_z8k, /* Zilog Z8000 */ #define bfd_mach_z8001 1 #define bfd_mach_z8002 2 @@ -1784,9 +1790,15 @@ through 0. */ /* Mitsubishi D10V relocs. This is a 10-bit reloc with the right 2 bits assumed to be 0. */ - BFD_RELOC_D10V_10_PCREL_L, BFD_RELOC_D10V_10_PCREL_R, +/* Mitsubishi D10V relocs. +This is a 10-bit reloc with the right 2 bits +assumed to be 0. This is the same as the previous reloc +except it is in the left container, i.e., +shifted left 15 bits. */ + BFD_RELOC_D10V_10_PCREL_L, + /* This is an 18-bit reloc with the right 2 bits assumed to be 0. */ BFD_RELOC_D10V_18, |