gcc.c (main): Move 'break' in main loops (on an error) to wait until error processing...
authorCaroline Tice <ctice@apple.com>
Wed, 7 Apr 2004 19:46:04 +0000 (19:46 +0000)
committerCaroline Tice <ctice@gcc.gnu.org>
Wed, 7 Apr 2004 19:46:04 +0000 (12:46 -0700)
2004-04-07  Caroline Tice  <ctice@apple.com>

        * gcc.c (main): Move 'break' in main loops (on an error)
        to wait until error processing has occurred.

From-SVN: r80483

gcc/ChangeLog
gcc/gcc.c

index e735814a9a34cd1d5b74e428185cc505650f174f..a2586eb44d3665e5773e3698c399b0be8265e7ae 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-07  Caroline Tice  <ctice@apple.com>
+
+       * gcc.c (main): Move 'break' in main loops (on an error)
+       to wait until error processing has occurred.
+       
 2004-04-06  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * config.gcc: Stop changing enable_threads midstream.
index f90cba3d1368c3c0e53691be5fee83a0a4d7ed74..3ab4dd95d87ee453745fcb162dc36526d76f9099 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -6425,10 +6425,7 @@ main (int argc, const char **argv)
                                                       infiles[i].language);
 
                  if (value < 0)
-                   {
-                     this_file_error = 1;
-                     break;
-                   }
+                   this_file_error = 1;
                }
            }
 
@@ -6436,6 +6433,7 @@ main (int argc, const char **argv)
            {
              delete_failure_queue ();
              error_count++;
+             break;
            }
          clear_failure_queue ();
        }
@@ -6482,10 +6480,7 @@ main (int argc, const char **argv)
              value = do_spec (input_file_compiler->spec);
              infiles[i].compiled = true;
              if (value < 0)
-               {
-                 this_file_error = 1;
-                 break;
-               }
+               this_file_error = 1;
            }
        }
 
@@ -6502,6 +6497,7 @@ main (int argc, const char **argv)
        {
          delete_failure_queue ();
          error_count++;
+         break;
        }
       /* If this compilation succeeded, don't delete those files later.  */
       clear_failure_queue ();