aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/except.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fda7c4e..9d277c1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jan 26 12:09:42 1998 Benjamin Kosnik <bkoz@rhino.cygnus.com>
+
+ * except.c (check_exception_handler_labels): Disable warning when
+ flag_syntax_only.
+
Mon Jan 26 18:17:32 1998 Jim Wilson <wilson@cygnus.com>
* sparc.c (pic_setup_code): Don't set LABEL_PRESERVE_P.
diff --git a/gcc/except.c b/gcc/except.c
index 216ab70..fce1b72 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -1787,7 +1787,7 @@ check_exception_handler_labels ()
== NOTE_BLOCK_NUMBER (insn))
break;
}
- if (handler == NULL_RTX)
+ if (handler == NULL_RTX && !flag_syntax_only)
warning ("region exists, no handler %d",
NOTE_BLOCK_NUMBER (insn));
}