summaryrefslogtreecommitdiff
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-16 05:19:46 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-16 05:19:46 +0000
commit21ea535b0f14dfe0c727918186dbd6bb4112d516 (patch)
tree852a18faa5124795a0a4b568e367433d322a8163 /gcc/cppfiles.c
parent99bd304689a40426ac29017694f3f060a96f9d28 (diff)
downloadgcc-21ea535b0f14dfe0c727918186dbd6bb4112d516.tar.gz
* cppfiles.c (stack_include_file): Use MAX of sysp.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40536 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index 434d3e44bab..1f7d899923c 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)