From 1e1b864906576c1e8ccd53595a727fc393fc0074 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Sun, 14 Nov 2004 18:54:18 +0000 Subject: [PATCH] re PR target/17279 (internal compiler error with 128 bit integers) 2004-11-14 Andrew Pinski 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 --- gcc/ChangeLog | 6 ++++++ gcc/c-common.c | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e250f0e2a0d..d6adbcb662b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-11-14 Andrew Pinski + + 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 PR tree-opt/18400 diff --git a/gcc/c-common.c b/gcc/c-common.c index c82a8a4fc6d..ba77501ebb3 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. */ -- 2.30.2