diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-13 14:42:39 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-11-13 14:42:39 +0000 |
commit | 384dcddb6bd8178d02aeaff2a07e67d8ecb3284b (patch) | |
tree | f2ff71ebf751f71334cf88d18182e31e8370f3bd /gcc/gimple.c | |
parent | a1095fc40df0ff6dde0bf8e318298eed5d957f42 (diff) | |
download | gcc-384dcddb6bd8178d02aeaff2a07e67d8ecb3284b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141820 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 47b9c9aff04..c0f8f1d5300 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -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 */ |