diff options
author | Ian Lance Taylor <ian@cygnus.com> | 1998-07-06 21:14:13 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-07-06 15:14:13 -0600 |
commit | ad214bc2c876608b47dcc86a36b0b52c01153b74 (patch) | |
tree | 858a35aeb9350da4cd314a20832a773e6d22602f /gcc | |
parent | 7c880813a8133e17c03f4e8f9971404b7addcd25 (diff) | |
download | gcc-ad214bc2c876608b47dcc86a36b0b52c01153b74.zip gcc-ad214bc2c876608b47dcc86a36b0b52c01153b74.tar.gz gcc-ad214bc2c876608b47dcc86a36b0b52c01153b74.tar.bz2 |
cpplib.c (cpp_options_init): Initialize cplusplus_comments to 1, matching July 18, 1995 change to cccp.c.
* cpplib.c (cpp_options_init): Initialize cplusplus_comments to 1,
matching July 18, 1995 change to cccp.c. If -traditional then
disable cplusplus_comments.
Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r20960
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cpplib.c | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 62f27b0..9704e67 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +Mon Jul 6 22:09:32 1998 Ian Lance Taylor <ian@cygnus.com> + Jeff Law <law@cygnus.com> + + * cpplib.c (cpp_options_init): Initialize cplusplus_comments to 1, + matching July 18, 1995 change to cccp.c. If -traditional then + disable cplusplus_comments. + Mon Jul 6 21:28:14 1998 Jeffrey A Law (law@cygnus.com) * Disable the following change from gcc2. Not appropriate for egcs: diff --git a/gcc/cpplib.c b/gcc/cpplib.c index bad82c3..095d559b 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -762,7 +762,7 @@ cpp_options_init (opts) opts->no_output = 0; opts->remap = 0; opts->cplusplus = 0; - opts->cplusplus_comments = 0; + opts->cplusplus_comments = 1; opts->verbose = 0; opts->objc = 0; @@ -6429,6 +6429,7 @@ cpp_handle_option (pfile, argc, argv) case 't': if (!strcmp (argv[i], "-traditional")) { opts->traditional = 1; + opts->cplusplus_comments = 0; } else if (!strcmp (argv[i], "-trigraphs")) { if (!opts->chill) opts->no_trigraphs = 0; |