diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/c-common.c | 14 |
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. */ |