From 44f1f8e566dd76057af78dc7d573756e8022c2b2 Mon Sep 17 00:00:00 2001 From: ghazi Date: Tue, 6 Mar 2001 14:33:11 +0000 Subject: * config/a29k/xm-a29k.h, config/a29k/xm-unix.h, config/alpha/xm-alpha.h, config/arc/xm-arc.h, config/arm/xm-arm.h, config/c4x/xm-c4x.h, config/clipper/xm-clix.h, config/convex/xm-convex.h, config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h, config/elxsi/xm-elxsi.h, config/h8300/xm-h8300.h, config/i370/xm-i370.h, config/i370/xm-linux.h, config/i370/xm-mvs.h, config/i370/xm-oe.h, config/i386/xm-i386.h, config/i860/xm-i860.h, config/i960/xm-i960.h, config/ia64/xm-ia64.h, config/m32r/xm-m32r.h, config/m68k/xm-m68k.h, config/m88k/xm-m88k.h, config/mcore/xm-mcore.h, config/mips/xm-mips.h, config/mn10200/xm-mn10200.h, config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h, config/pa/xm-linux.h, config/pa/xm-pa.h, config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h, config/pa/xm-papro.h, config/pj/xm-pj.h, config/romp/xm-romp.h, config/rs6000/xm-beos.h, config/rs6000/xm-lynx.h, config/rs6000/xm-rs6000.h, config/rs6000/xm-sysv4.h, config/sh/xm-sh.h, config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h, config/v850/xm-v850.h, config/vax/xm-vax.h, config/vax/xm-vms.h, config/we32k/xm-we32k.h: Delete HOST_BITS_PER_* definitions which match the defaults provided in hwint.h. * config/i386/xm-lynx.h, config/m68k/xm-lynx.h, config/sparc/xm-lynx.h, config/xm-std32.h: Delete files. * config.gcc (xm_file): Don't set to files which are deleted. * hwint.h: Provide default values for HOST_BITS_PER_*. No longer guard this file against these macros being undefined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40262 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/hwint.h | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'gcc/hwint.h') diff --git a/gcc/hwint.h b/gcc/hwint.h index 91973b8187a..28614d5ee5b 100644 --- a/gcc/hwint.h +++ b/gcc/hwint.h @@ -9,9 +9,24 @@ #ifndef __HWINT_H__ #define __HWINT_H__ -/* Only do all of this if both of these macros are defined, otherwise - they'll evaluate to zero, which is not what you want. */ -#if defined (HOST_BITS_PER_LONG) && defined (HOST_BITS_PER_INT) +/* This describes the machine the compiler is hosted on. The defaults + we provide describe the standard 32 bit host since that is the most + common type supported in gcc. */ +#ifndef HOST_BITS_PER_CHAR +# define HOST_BITS_PER_CHAR 8 +#endif +#ifndef HOST_BITS_PER_SHORT +# define HOST_BITS_PER_SHORT 16 +#endif +#ifndef HOST_BITS_PER_INT +# define HOST_BITS_PER_INT 32 +#endif +#ifndef HOST_BITS_PER_LONG +# define HOST_BITS_PER_LONG 32 +#endif +#ifndef HOST_BITS_PER_LONGLONG +# define HOST_BITS_PER_LONGLONG 64 +#endif /* Find the largest host integer type and set its size and type. */ @@ -91,6 +106,4 @@ # endif #endif /* ! HOST_WIDE_INT_PRINT_DOUBLE_HEX */ -#endif /* HOST_BITS_PER_LONG && HOST_BITS_PER_INT */ - #endif /* __HWINT_H__ */ -- cgit v1.2.1