summaryrefslogtreecommitdiff
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
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcc.c12
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 <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.
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 ();