OSDN Git Service

* except.c (check_exception_handler_labels): Disable warning when
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 1998 22:43:57 +0000 (22:43 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 1998 22:43:57 +0000 (22:43 +0000)
        flag_syntax_only.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17493 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/except.c

index fda7c4e..9d277c1 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 216ab70..fce1b72 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));
        }