diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-14 22:34:50 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-14 22:34:50 +0000 |
commit | 3c556f04c64ac43ce21344ceb0d94165934b2b52 (patch) | |
tree | f37dd03c8db5ac792b317d8bbddee04999fd0d43 /gcc/c-opts.c | |
parent | 47f175274591a9f5f384e25a56d4f994e36b368f (diff) | |
download | gcc-3c556f04c64ac43ce21344ceb0d94165934b2b52.tar.gz |
PR preprocessor/7358
* c-opts.c (check_deps_environment_vars): Ignore main file
for SUNPRO_DEPENDENCIES.
* cppfiles.c (stack_include_file): Ignore main file if
appropriate.
* cpplib.h (struct cpp_options): New member in deps.
* doc/cppenv.texi: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56333 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 0b98308b12b..36f11f02288 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1467,7 +1467,8 @@ c_common_finish () DEPS_TARGET", where OUTPUT_FILE is the file to write deps info to and DEPS_TARGET is the target to mention in the deps. They also result in dependency information being appended to the output file - rather than overwriting it. */ + rather than overwriting it, and like Sun's compiler + SUNPRO_DEPENDENCIES suppresses the dependency on the main file. */ static void check_deps_environment_vars () { @@ -1480,7 +1481,10 @@ check_deps_environment_vars () { GET_ENVIRONMENT (spec, "SUNPRO_DEPENDENCIES"); if (spec) - cpp_opts->deps.style = DEPS_SYSTEM; + { + cpp_opts->deps.style = DEPS_SYSTEM; + cpp_opts->deps.ignore_main_file = true; + } } if (spec) |