error.c: Use flag_fatal_error.
authorSteven G. Kargl <kargl@gcc.gnu.org>
Mon, 7 Nov 2005 16:37:10 +0000 (16:37 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Mon, 7 Nov 2005 16:37:10 +0000 (16:37 +0000)
    *error.c: Use flag_fatal_error.
    *invoke.texi:  Remove -Werror from list of options.

From-SVN: r106595

gcc/fortran/error.c
gcc/fortran/invoke.texi

index 3f38c3b68020d733260e7c18728d6cae6005d5ed..aa23330020c047c0719ae873479091a66f481fb9 100644 (file)
@@ -621,6 +621,9 @@ gfc_error_now (const char *nocmsgid, ...)
 
   error_char ('\0');
   buffer_flag = i;
+
+  if (flag_fatal_errors)
+    exit (1);
 }
 
 
@@ -687,6 +690,9 @@ gfc_error_check (void)
       if (error_buffer.message != NULL)
        fputs (error_buffer.message, stderr);
       error_buffer.flag = 0;
+
+      if (flag_fatal_errors)
+       exit (1);
     }
 
   return rc;
index 3a5fe8736d3ba241b6b4ec487a400fc6a08ee9b8..ddb8fd281322f5709c96cfb6c74ea37137bacd55 100644 (file)
@@ -128,8 +128,7 @@ by type.  Explanations are in the following sections.
 -fsyntax-only  -pedantic  -pedantic-errors @gol
 -w  -Wall  -Waliasing  -Wconversion @gol
 -Wimplicit-interface  -Wnonstd-intrinsics  -Wsurprising  -Wunderflow @gol
--Wunused-labels -Wline-truncation @gol
--Werror  -W}
+-Wunused-labels -Wline-truncation -W}
 
 @item Debugging Options
 @xref{Debugging Options,,Options for Debugging Your Program or GCC}.