aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-11-24 05:19:01 +0000
committerRichard Stallman <rms@gnu.org>1992-11-24 05:19:01 +0000
commit2bbd52a84196383b5f1e0209669efec75d9c4997 (patch)
tree9656504472124eeb80301ce9418ca7df89098b5e /gcc
parent4be2397b19c9d958665a639ff5457b07f7a18f5f (diff)
downloadgcc-2bbd52a84196383b5f1e0209669efec75d9c4997.zip
gcc-2bbd52a84196383b5f1e0209669efec75d9c4997.tar.gz
gcc-2bbd52a84196383b5f1e0209669efec75d9c4997.tar.bz2
(main): Do -D's and -A's and -U's in order specified.
From-SVN: r2788
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cccp.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 3c88820..4f2ab7b 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -1451,26 +1451,21 @@ main (argc, argv)
/* Now handle the command line options. */
- /* Do undefines specified with -U. */
- for (i = 1; i < argc; i++)
+ /* Do -U's, -D's and -A's in the order they were seen. */
+ for (i = 1; i < argc; i++) {
if (pend_undefs[i]) {
if (debug_output)
output_line_command (fp, &outbuf, 0, same_file);
make_undef (pend_undefs[i], &outbuf);
}
-
- /* Do assertions specified with -A. */
- for (i = 1; i < argc; i++)
- if (pend_assertions[i])
- make_assertion (pend_assertion_options[i], pend_assertions[i]);
-
- /* Do defines specified with -D. */
- for (i = 1; i < argc; i++)
if (pend_defs[i]) {
if (debug_output)
output_line_command (fp, &outbuf, 0, same_file);
make_definition (pend_defs[i], &outbuf);
}
+ if (pend_assertions[i])
+ make_assertion (pend_assertion_options[i], pend_assertions[i]);
+ }
done_initializing = 1;