From b21292d0bdd6529a63da68ae0798e300c17638e2 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Wed, 7 Apr 2004 19:46:04 +0000 Subject: [PATCH] gcc.c (main): Move 'break' in main loops (on an error) to wait until error processing has... 2004-04-07 Caroline Tice * gcc.c (main): Move 'break' in main loops (on an error) to wait until error processing has occurred. From-SVN: r80483 --- gcc/ChangeLog | 5 +++++ gcc/gcc.c | 12 ++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e735814a9a3..a2586eb44d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-04-07 Caroline Tice + + * gcc.c (main): Move 'break' in main loops (on an error) + to wait until error processing has occurred. + 2004-04-06 Nathanael Nerode * config.gcc: Stop changing enable_threads midstream. diff --git a/gcc/gcc.c b/gcc/gcc.c index f90cba3d136..3ab4dd95d87 100644 --- 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 (); -- 2.30.2