summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-20 08:01:32 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2014-05-20 08:01:32 +0000
commita30347948c2f70532bd5b58990e78012fb971b31 (patch)
treeb0ae04d799914545c090c859c13d25a91264e970 /gcc
parent794a8431605d5a091e3c858857e698a3f4d8bc22 (diff)
downloadgcc-a30347948c2f70532bd5b58990e78012fb971b31.tar.gz
2014-05-20 Richard Biener <rguenther@suse.de>
gcc/ * config.gcc: Remove need_64bit_hwint. * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT. * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume it to be true. * config.in: Regenerate. * configure: Likewise. libcpp/ * configure.ac: Copy gcc logic of detecting a 64bit type. Remove HOST_WIDE_INT define. * include/cpplib.h: typedef cpp_num_part to a 64bit type, similar to how hwint.h does it. * config.in: Regenerate. * configure: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@210632 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog9
-rw-r--r--gcc/config.gcc27
-rw-r--r--gcc/config.in6
-rwxr-xr-xgcc/configure10
-rw-r--r--gcc/configure.ac5
-rw-r--r--gcc/hwint.h2
6 files changed, 12 insertions, 47 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 91369fc43cc..16c7f518f40 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,12 @@
+2014-05-20 Richard Biener <rguenther@suse.de>
+
+ * config.gcc: Remove need_64bit_hwint.
+ * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
+ * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
+ it to be true.
+ * config.in: Regenerate.
+ * configure: Likewise.
+
2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
* doc/extend.texi: Create Label Attributes section,
diff --git a/gcc/config.gcc b/gcc/config.gcc
index bc1e4c56843..de010da7c1f 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -164,13 +164,6 @@
# gas Set to yes or no depending on whether the target
# system normally uses GNU as.
#
-# need_64bit_hwint Set to yes if HOST_WIDE_INT must be 64 bits wide
-# for this target. This is true if this target
-# supports "long" or "wchar_t" wider than 32 bits,
-# or BITS_PER_WORD is wider than 32 bits.
-# The setting made here must match the one made in
-# other locations such as libcpp/configure.ac
-#
# configure_default_options
# Set to an initializer for configure_default_options
# in configargs.h, based on --with-cpu et cetera.
@@ -233,7 +226,6 @@ gnu_ld="$gnu_ld_flag"
default_use_cxa_atexit=no
default_gnu_indirect_function=no
target_gtfiles=
-need_64bit_hwint=yes
need_64bit_isa=
native_system_header_dir=/usr/include
target_type_format_char='@'
@@ -310,14 +302,12 @@ m32c*-*-*)
;;
aarch64*-*-*)
cpu_type=aarch64
- need_64bit_hwint=yes
extra_headers="arm_neon.h"
extra_objs="aarch64-builtins.o aarch-common.o"
target_has_targetm_common=yes
;;
alpha*-*-*)
cpu_type=alpha
- need_64bit_hwint=yes
extra_options="${extra_options} g.opt"
;;
am33_2.0-*-linux*)
@@ -333,7 +323,6 @@ arm*-*-*)
target_type_format_char='%'
c_target_objs="arm-c.o"
cxx_target_objs="arm-c.o"
- need_64bit_hwint=yes
extra_options="${extra_options} arm/arm-tables.opt"
;;
avr-*-*)
@@ -363,7 +352,6 @@ i[34567]86-*-*)
cpu_type=i386
c_target_objs="i386-c.o"
cxx_target_objs="i386-c.o"
- need_64bit_hwint=yes
extra_options="${extra_options} fused-madd.opt"
extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
pmmintrin.h tmmintrin.h ammintrin.h smmintrin.h
@@ -395,11 +383,9 @@ x86_64-*-*)
avx512cdintrin.h avx512erintrin.h avx512pfintrin.h
shaintrin.h clflushoptintrin.h xsavecintrin.h
xsavesintrin.h"
- need_64bit_hwint=yes
;;
ia64-*-*)
extra_headers=ia64intrin.h
- need_64bit_hwint=yes
extra_options="${extra_options} g.opt fused-madd.opt"
;;
hppa*-*-*)
@@ -422,7 +408,6 @@ microblaze*-*-*)
;;
mips*-*-*)
cpu_type=mips
- need_64bit_hwint=yes
extra_headers="loongson.h"
extra_options="${extra_options} g.opt mips/mips-tables.opt"
;;
@@ -440,7 +425,6 @@ picochip-*-*)
powerpc*-*-*)
cpu_type=rs6000
extra_headers="ppc-asm.h altivec.h spe.h ppu_intrinsics.h paired.h spu2vmx.h vec_types.h si2vmx.h htmintrin.h htmxlintrin.h"
- need_64bit_hwint=yes
case x$with_cpu in
xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[345678]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|Xe6500)
cpu_is_64bit=yes
@@ -449,7 +433,6 @@ powerpc*-*-*)
extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt"
;;
rs6000*-*-*)
- need_64bit_hwint=yes
extra_options="${extra_options} g.opt fused-madd.opt rs6000/rs6000-tables.opt"
;;
score*-*-*)
@@ -461,22 +444,18 @@ sparc*-*-*)
c_target_objs="sparc-c.o"
cxx_target_objs="sparc-c.o"
extra_headers="visintrin.h"
- need_64bit_hwint=yes
;;
spu*-*-*)
cpu_type=spu
- need_64bit_hwint=yes
;;
s390*-*-*)
cpu_type=s390
- need_64bit_hwint=yes
extra_options="${extra_options} fused-madd.opt"
extra_headers="s390intrin.h htmintrin.h htmxlintrin.h"
;;
# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
sh[123456789lbe]*-*-* | sh-*-*)
cpu_type=sh
- need_64bit_hwint=yes
extra_options="${extra_options} fused-madd.opt"
extra_objs="${extra_objs} sh_treg_combine.o sh-mem.o sh_optimize_sett_clrt.o"
;;
@@ -493,11 +472,9 @@ xtensa*-*-*)
;;
tilegx*-*-*)
cpu_type=tilegx
- need_64bit_hwint=yes
;;
tilepro*-*-*)
cpu_type=tilepro
- need_64bit_hwint=yes
;;
esac
@@ -685,7 +662,6 @@ case ${target} in
*)
default_use_cxa_atexit=yes;;
esac
- # need_64bit_hwint=yes # system compiler has this for all arch!
use_gcc_stdint=wrap
;;
*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
@@ -1186,7 +1162,6 @@ hppa*64*-*-linux*)
glibc-stdint.h pa/pa-linux.h pa/pa64-regs.h pa/pa-64.h \
pa/pa64-linux.h"
gas=yes gnu_ld=yes
- need_64bit_hwint=yes
;;
hppa*-*-linux*)
target_cpu_default="MASK_PA_11|MASK_NO_SPACE_REGS"
@@ -1261,7 +1236,6 @@ hppa*64*-*-hpux11*)
esac
extra_options="${extra_options} pa/pa-hpux.opt \
pa/pa-hpux1010.opt pa/pa64-hpux.opt hpux11.opt"
- need_64bit_hwint=yes
tmake_file="t-slibgcc"
case x${enable_threads} in
x | xyes | xposix )
@@ -2094,7 +2068,6 @@ mipstx39-*-elf* | mipstx39el-*-elf*)
;;
mmix-knuth-mmixware)
tm_file="${tm_file} newlib-stdint.h"
- need_64bit_hwint=yes
use_gcc_stdint=wrap
;;
mn10300-*-*)
diff --git a/gcc/config.in b/gcc/config.in
index c0ba36ea98b..f03ed8288a1 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -1729,12 +1729,6 @@
#endif
-/* Define to 1 if HOST_WIDE_INT must be 64 bits wide (see hwint.h). */
-#ifndef USED_FOR_TARGET
-#undef NEED_64BIT_HOST_WIDE_INT
-#endif
-
-
/* Define to the address where bug reports for this package should be sent. */
#ifndef USED_FOR_TARGET
#undef PACKAGE_BUGREPORT
diff --git a/gcc/configure b/gcc/configure
index f4db0a03656..127dceeef73 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -11150,12 +11150,6 @@ else
done
fi
-if test x$need_64bit_hwint = xyes; then
-
-$as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
-
-fi
-
if test x$use_long_long_for_widest_fast_int = xyes; then
$as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
@@ -17994,7 +17988,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 17997 "configure"
+#line 17991 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -18100,7 +18094,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 18103 "configure"
+#line 18097 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 8f17dfb42bb..a339a0f54d8 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -1372,11 +1372,6 @@ else
done
fi
-if test x$need_64bit_hwint = xyes; then
- AC_DEFINE(NEED_64BIT_HOST_WIDE_INT, 1,
-[Define to 1 if HOST_WIDE_INT must be 64 bits wide (see hwint.h).])
-fi
-
if test x$use_long_long_for_widest_fast_int = xyes; then
AC_DEFINE(USE_LONG_LONG_FOR_WIDEST_FAST_INT, 1,
[Define to 1 if the 'long long' (or '__int64') is wider than 'long' but still
diff --git a/gcc/hwint.h b/gcc/hwint.h
index ac9c9a295b4..4cc4614b4ea 100644
--- a/gcc/hwint.h
+++ b/gcc/hwint.h
@@ -56,7 +56,7 @@ extern char sizeof_long_long_must_be_8[sizeof (long long) == 8 ? 1 : -1];
Thus, we use that unless we have to use 'long long' or '__int64'
because we're targeting a 64-bit machine from a 32-bit host. */
-#if HOST_BITS_PER_LONG >= 64 || !defined NEED_64BIT_HOST_WIDE_INT
+#if HOST_BITS_PER_LONG >= 64
# define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
# define HOST_WIDE_INT long
# define HOST_WIDE_INT_C(X) X ## L