aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2004-04-07 19:46:04 +0000
committerCaroline Tice <ctice@gcc.gnu.org>2004-04-07 12:46:04 -0700
commitb21292d0bdd6529a63da68ae0798e300c17638e2 (patch)
treec84aa16c53fa27462b0ec12724a5360a3791a418 /gcc/gcc.c
parent2e55bbc120a09a500436c73d6d6f7bada8974ec0 (diff)
downloadgcc-b21292d0bdd6529a63da68ae0798e300c17638e2.zip
gcc-b21292d0bdd6529a63da68ae0798e300c17638e2.tar.gz
gcc-b21292d0bdd6529a63da68ae0798e300c17638e2.tar.bz2
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
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index f90cba3..3ab4dd9 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 ();