except.c (check_exception_handler_labels): Disable warning when flag_syntax_only.
authorBenjamin Kosnik <bkoz@rhino.cygnus.com>
Mon, 26 Jan 1998 22:43:57 +0000 (22:43 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 26 Jan 1998 22:43:57 +0000 (15:43 -0700)
        * except.c (check_exception_handler_labels): Disable warning when
        flag_syntax_only.

From-SVN: r17493

gcc/ChangeLog
gcc/except.c

index fda7c4e76ab33037947076bb03275c97e59492ac..9d277c1a8d0a5cd86b91abf8299b97771ce2b6c2 100644 (file)
@@ -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.
index 216ab70f68257b19cddb8fe5f1e596f6ccd5cc7f..fce1b7238066e396c084aa3eeab294caded4a33c 100644 (file)
@@ -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));
        }