diff options
author | Richard Stallman <rms@gnu.org> | 1992-11-24 05:19:01 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-11-24 05:19:01 +0000 |
commit | 2bbd52a84196383b5f1e0209669efec75d9c4997 (patch) | |
tree | 9656504472124eeb80301ce9418ca7df89098b5e /gcc | |
parent | 4be2397b19c9d958665a639ff5457b07f7a18f5f (diff) | |
download | gcc-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.c | 15 |
1 files changed, 5 insertions, 10 deletions
@@ -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; |