From: Andreas Schwab Date: Wed, 8 Sep 1999 09:43:16 +0000 (+0000) Subject: * cccp.c (main): Fix handling of -include and -imacros options. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29ffdfbb0f93ac4ee072ae0c818c2b75d5f8cff1;p=gcc.git * cccp.c (main): Fix handling of -include and -imacros options. From-SVN: r29204 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2ddf77ef159..9e692da453b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed Sep 8 11:14:25 1999 Andreas Schwab + + * cccp.c (main): Fix handling of -include and -imacros options. + Wed Sep 8 02:23:08 1999 Jeffrey A Law (law@cygnus.com) * cpplib.c (cpp_push_buffer): Fix order of arguments. diff --git a/gcc/cccp.c b/gcc/cccp.c index fcec1c619a8..c7f1db25c1b 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -1301,16 +1301,16 @@ main (argc, argv) if (i + 1 == argc) fatal ("Filename missing after `-include' option"); else { - simplify_filename (pend_includes[i] = argv[i]); i++; + simplify_filename (pend_includes[i] = argv[i]); } } if (!strcmp (argv[i], "-imacros")) { if (i + 1 == argc) fatal ("Filename missing after `-imacros' option"); else { - simplify_filename (pend_files[i] = argv[i]); i++; + simplify_filename (pend_files[i] = argv[i]); } } if (!strcmp (argv[i], "-iprefix")) {