OSDN Git Service

*error.c: Use flag_fatal_error.
authorkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Nov 2005 16:37:10 +0000 (16:37 +0000)
committerkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Nov 2005 16:37:10 +0000 (16:37 +0000)
    *invoke.texi:  Remove -Werror from list of options.

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

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

index 3f38c3b..aa23330 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 3a5fe87..ddb8fd2 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}.