Commit b21292d0 by Caroline Tice Committed by Caroline Tice

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

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
parent 2e55bbc1
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> 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
* config.gcc: Stop changing enable_threads midstream. * config.gcc: Stop changing enable_threads midstream.
......
...@@ -6425,10 +6425,7 @@ main (int argc, const char **argv) ...@@ -6425,10 +6425,7 @@ main (int argc, const char **argv)
infiles[i].language); infiles[i].language);
if (value < 0) if (value < 0)
{ this_file_error = 1;
this_file_error = 1;
break;
}
} }
} }
...@@ -6436,6 +6433,7 @@ main (int argc, const char **argv) ...@@ -6436,6 +6433,7 @@ main (int argc, const char **argv)
{ {
delete_failure_queue (); delete_failure_queue ();
error_count++; error_count++;
break;
} }
clear_failure_queue (); clear_failure_queue ();
} }
...@@ -6482,10 +6480,7 @@ main (int argc, const char **argv) ...@@ -6482,10 +6480,7 @@ main (int argc, const char **argv)
value = do_spec (input_file_compiler->spec); value = do_spec (input_file_compiler->spec);
infiles[i].compiled = true; infiles[i].compiled = true;
if (value < 0) if (value < 0)
{ this_file_error = 1;
this_file_error = 1;
break;
}
} }
} }
...@@ -6502,6 +6497,7 @@ main (int argc, const char **argv) ...@@ -6502,6 +6497,7 @@ main (int argc, const char **argv)
{ {
delete_failure_queue (); delete_failure_queue ();
error_count++; error_count++;
break;
} }
/* If this compilation succeeded, don't delete those files later. */ /* If this compilation succeeded, don't delete those files later. */
clear_failure_queue (); clear_failure_queue ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment