summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-07 19:46:04 +0000
committerctice <ctice@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-07 19:46:04 +0000
commite40d30f5ead5798a6c86882328b448b7d1e2f2fd (patch)
treec84aa16c53fa27462b0ec12724a5360a3791a418 /gcc/gcc.c
parent25bea92c4259530c0b41df3aef0c36258ff32f13 (diff)
downloadgcc-e40d30f5ead5798a6c86882328b448b7d1e2f2fd.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@80483 138bc75d-0d04-0410-961f-82ee72b054a4
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 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 ();