re PR bootstrap/38100 (gcc fails to compile with (undefined symbol) gimple_check_fail...
authorJakub Jelinek <jakub@redhat.com>
Thu, 13 Nov 2008 14:42:39 +0000 (15:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Nov 2008 14:42:39 +0000 (15:42 +0100)
PR bootstrap/38100
* gimple.h (gimple_range_check_failed): Remove prototype.
* gimple.c (gimple_check_failed): Don't check GCC_VERSION
in guarding #if.
(gimple_range_check_failed): Removed.

From-SVN: r141820

gcc/ChangeLog
gcc/gimple.c
gcc/gimple.h

index aae0e9cb47ce5f68d54a0810a70b39da32ea085b..0ec0db6060337bc75f59f3a3519fa9fef741d702 100644 (file)
@@ -1,3 +1,11 @@
+2008-11-13  Jakub Jelinek  <jakub@redhat.com>
+
+       PR bootstrap/38100
+       * gimple.h (gimple_range_check_failed): Remove prototype.
+       * gimple.c (gimple_check_failed): Don't check GCC_VERSION
+       in guarding #if.
+       (gimple_range_check_failed): Removed.
+
 2008-11-13  Andrew Haley  <aph@redhat.com>
 
        PR bootstrap/38088
index 47b9c9aff04cb58b2c1155323e7a57902a48fa16..c0f8f1d53003665beddf0f07469382bfe4ba132f 100644 (file)
@@ -1100,7 +1100,7 @@ gimple_statement_structure (gimple gs)
   return gss_for_code (gimple_code (gs));
 }
 
-#if defined ENABLE_GIMPLE_CHECKING && (GCC_VERSION >= 2007)
+#if defined ENABLE_GIMPLE_CHECKING
 /* Complain of a gimple type mismatch and die.  */
 
 void
@@ -1117,41 +1117,6 @@ gimple_check_failed (const_gimple gs, const char *file, int line,
                    : "",
                  function, trim_filename (file), line);
 }
-
-
-/* Similar to gimple_check_failed, except that instead of specifying a
-   dozen codes, use the knowledge that they're all sequential.  */
-
-void
-gimple_range_check_failed (const_gimple gs, const char *file, int line,
-                          const char *function, enum gimple_code c1,
-                          enum gimple_code c2)
-{
-  char *buffer;
-  unsigned length = 0;
-  enum gimple_code c;
-
-  for (c = c1; c <= c2; ++c)
-    length += 4 + strlen (gimple_code_name[c]);
-
-  length += strlen ("expected ");
-  buffer = XALLOCAVAR (char, length);
-  length = 0;
-
-  for (c = c1; c <= c2; ++c)
-    {
-      const char *prefix = length ? " or " : "expected ";
-
-      strcpy (buffer + length, prefix);
-      length += strlen (prefix);
-      strcpy (buffer + length, gimple_code_name[c]);
-      length += strlen (gimple_code_name[c]);
-    }
-
-  internal_error ("gimple check: %s, have %s in %s, at %s:%d",
-                 buffer, gimple_code_name[gimple_code (gs)],
-                 function, trim_filename (file), line);
-}
 #endif /* ENABLE_GIMPLE_CHECKING */
 
 
index a6947c33405d7ab272b13bd6e85309d1f5dad8e3..debba122c9c209e8f84f1e9a271adad365ad65a0 100644 (file)
@@ -59,9 +59,6 @@ extern const unsigned char gimple_rhs_class_table[];
 extern void gimple_check_failed (const_gimple, const char *, int,          \
                                  const char *, enum gimple_code,           \
                                 enum tree_code) ATTRIBUTE_NORETURN;
-extern void gimple_range_check_failed (const_gimple, const char *, int,    \
-                                       const char *, enum gimple_code,     \
-                                      enum gimple_code) ATTRIBUTE_NORETURN;
 
 #define GIMPLE_CHECK(GS, CODE)                                         \
   do {                                                                 \