From ec2be682fbc995f58fe370243e70bb711f799f8f Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Mon, 26 Jan 1998 22:43:57 +0000 Subject: [PATCH] except.c (check_exception_handler_labels): Disable warning when flag_syntax_only. * except.c (check_exception_handler_labels): Disable warning when flag_syntax_only. From-SVN: r17493 --- gcc/ChangeLog | 5 +++++ gcc/except.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fda7c4e76ab..9d277c1a8d0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 26 12:09:42 1998 Benjamin Kosnik + + * except.c (check_exception_handler_labels): Disable warning when + flag_syntax_only. + Mon Jan 26 18:17:32 1998 Jim Wilson * sparc.c (pic_setup_code): Don't set LABEL_PRESERVE_P. diff --git a/gcc/except.c b/gcc/except.c index 216ab70f682..fce1b723806 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)); } -- 2.30.2