summaryrefslogtreecommitdiffstats
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-08 21:21:19 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-08 21:21:19 +0000
commitb26dc365168bd3a40c8663c08c86428173e98559 (patch)
treefa302bee2149e8e46598f7b0c14b6969a2a3415d /gcc/cppfiles.c
parent2798f07c7bedd317fa7b596c071f0b2672d439e8 (diff)
downloadppe42-gcc-b26dc365168bd3a40c8663c08c86428173e98559.tar.gz
ppe42-gcc-b26dc365168bd3a40c8663c08c86428173e98559.zip
PR preprocessor/6521
* cppfiles.c (handle_missing_header): Don't do anything different for <> includes. doc: * cppopts.texi: Update documentation for -MG. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index 7600523b009..70ac9782f4d 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -658,30 +658,7 @@ handle_missing_header (pfile, fname, angle_brackets)
int print_dep = CPP_PRINT_DEPS(pfile) > (angle_brackets || pfile->map->sysp);
if (CPP_OPTION (pfile, print_deps_missing_files) && print_dep)
- {
- if (!angle_brackets || IS_ABSOLUTE_PATHNAME (fname))
- deps_add_dep (pfile->deps, fname);
- else
- {
- /* If requested as a system header, assume it belongs in
- the first system header directory. */
- struct search_path *ptr = CPP_OPTION (pfile, bracket_include);
- char *p;
- int len = 0, fname_len = strlen (fname);
-
- if (ptr)
- len = ptr->len;
-
- p = (char *) alloca (len + fname_len + 2);
- if (len)
- {
- memcpy (p, ptr->name, len);
- p[len++] = '/';
- }
- memcpy (p + len, fname, fname_len + 1);
- deps_add_dep (pfile->deps, p);
- }
- }
+ deps_add_dep (pfile->deps, fname);
/* If -M was specified, then don't count this as an error, because
we can still produce correct output. Otherwise, we can't produce
correct output, because there may be dependencies we need inside
OpenPOWER on IntegriCloud