aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2004-11-14 18:54:18 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2004-11-14 10:54:18 -0800
commit1e1b864906576c1e8ccd53595a727fc393fc0074 (patch)
treed498fe969d71adf50f58b365942aea5e54c164e9 /gcc
parentd6f6ef21b2b8035f65eeea8ce73ad11245f56608 (diff)
downloadgcc-1e1b864906576c1e8ccd53595a727fc393fc0074.zip
gcc-1e1b864906576c1e8ccd53595a727fc393fc0074.tar.gz
gcc-1e1b864906576c1e8ccd53595a727fc393fc0074.tar.bz2
re PR target/17279 (internal compiler error with 128 bit integers)
2004-11-14 Andrew Pinski <pinskia@physics.uc.edu> PR c/17279 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we support TImode before adding __int128_t and __uint128_t types. From-SVN: r90627
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-common.c14
2 files changed, 14 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e250f0e..d6adbcb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR c/17279
+ * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
+ support TImode before adding __int128_t and __uint128_t types.
+
2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
PR tree-opt/18400
diff --git a/gcc/c-common.c b/gcc/c-common.c
index c82a8a4..ba77501 100644
--- a/gcc/c-common.c
+++ b/gcc/c-common.c
@@ -2950,9 +2950,10 @@ c_common_nodes_and_builtins (void)
lang_hooks.decls.pushdecl (build_decl (TYPE_DECL, NULL_TREE,
intDI_type_node));
#if HOST_BITS_PER_WIDE_INT >= 64
- lang_hooks.decls.pushdecl (build_decl (TYPE_DECL,
- get_identifier ("__int128_t"),
- intTI_type_node));
+ if (targetm.scalar_mode_supported_p (TImode))
+ lang_hooks.decls.pushdecl (build_decl (TYPE_DECL,
+ get_identifier ("__int128_t"),
+ intTI_type_node));
#endif
lang_hooks.decls.pushdecl (build_decl (TYPE_DECL, NULL_TREE,
unsigned_intQI_type_node));
@@ -2963,9 +2964,10 @@ c_common_nodes_and_builtins (void)
lang_hooks.decls.pushdecl (build_decl (TYPE_DECL, NULL_TREE,
unsigned_intDI_type_node));
#if HOST_BITS_PER_WIDE_INT >= 64
- lang_hooks.decls.pushdecl (build_decl (TYPE_DECL,
- get_identifier ("__uint128_t"),
- unsigned_intTI_type_node));
+ if (targetm.scalar_mode_supported_p (TImode))
+ lang_hooks.decls.pushdecl (build_decl (TYPE_DECL,
+ get_identifier ("__uint128_t"),
+ unsigned_intTI_type_node));
#endif
/* Create the widest literal types. */