diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-21 18:27:49 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-21 18:27:49 +0000 |
| commit | 13c6da6eb377cf3cdeaa9580256af98f961336fe (patch) | |
| tree | 2ee6e22cbd1c413796d31b84acf380f9bbcb04ef /gcc/cppinit.c | |
| parent | 719f8b961395d58a46fe7a1943b5ad84f3c91b97 (diff) | |
| download | ppe42-gcc-13c6da6eb377cf3cdeaa9580256af98f961336fe.tar.gz ppe42-gcc-13c6da6eb377cf3cdeaa9580256af98f961336fe.zip | |
* do_includes: Revert to using cpp_read_file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37620 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
| -rw-r--r-- | gcc/cppinit.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index f8394e4a708..62428406ee2 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -937,16 +937,11 @@ do_includes (pfile, p, scan) { while (p) { - cpp_token header; struct pending_option *q; - header.type = CPP_STRING; - header.val.str.text = (unsigned char *) p->arg; - header.val.str.len = strlen (p->arg); - - /* Use the #include "" search path. */ - _cpp_execute_include (pfile, &header, 0, 0); - if (scan) + /* Later: maybe update this to use the #include "" search path + if cpp_read_file fails. */ + if (cpp_read_file (pfile, p->arg) && scan) cpp_scan_buffer_nooutput (pfile); q = p->next; free (p); |

