diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2001-03-16 05:19:46 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2001-03-16 05:19:46 +0000 |
commit | 11bca3093b1b818d88bb5264d3ace1e39d0b46d1 (patch) | |
tree | 852a18faa5124795a0a4b568e367433d322a8163 /gcc/cppfiles.c | |
parent | 69ca5554fdb9e9b5e513e71cc1e87fefdc6a8f52 (diff) | |
download | gcc-11bca3093b1b818d88bb5264d3ace1e39d0b46d1.zip gcc-11bca3093b1b818d88bb5264d3ace1e39d0b46d1.tar.gz gcc-11bca3093b1b818d88bb5264d3ace1e39d0b46d1.tar.bz2 |
* cppfiles.c (stack_include_file): Use MAX of sysp.
From-SVN: r40536
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 434d3e4..1f7d899 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -277,8 +277,8 @@ stack_include_file (pfile, inc) /* We'll try removing deps_sysp after the release of 3.0. */ deps_sysp = pfile->system_include_depth != 0; - sysp = ((pfile->buffer && pfile->buffer->sysp) - || (inc->foundhere && inc->foundhere->sysp)); + sysp = MAX ((pfile->buffer ? pfile->buffer->sysp : 0), + (inc->foundhere ? inc->foundhere->sysp : 0)); /* For -M, add the file to the dependencies on its first inclusion. */ if (CPP_OPTION (pfile, print_deps) > deps_sysp && !inc->include_count) |