re PR target/17279 (internal compiler error with 128 bit integers)
authorAndrew Pinski <pinskia@physics.uc.edu>
Sun, 14 Nov 2004 18:54:18 +0000 (18:54 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 14 Nov 2004 18:54:18 +0000 (10:54 -0800)
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

gcc/ChangeLog
gcc/c-common.c

index e250f0e2a0d80311b957e911116c45c645ad2f0f..d6adbcb662b813f79e1669ea595930232d9fe65f 100644 (file)
@@ -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
index c82a8a4fc6d4c0e8e55cf07eeb7537886e504f71..ba77501ebb3d8c7f70873bebb3d385cf23d55a58 100644 (file)
@@ -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.  */