summaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-06 07:22:01 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-06 07:22:01 +0000
commit7eda354a6f764900c1db7d8a0d30fe4c084ba074 (patch)
treec15a70516f598de133ec9104c90fc14238a59310 /gcc/cpplib.c
parent2eb1914f18fcab815865c3c5480445b3565631d5 (diff)
downloadgcc-7eda354a6f764900c1db7d8a0d30fe4c084ba074.tar.gz
* configure.in: Add check for lstat.
* configure, config.in: Regenerate. * cppinit.c (append_include_chain): Make empty path ".". * cpplib.c (do_line): Don't simplify #line paths. * cppfiles.c (remove_component_p): New function. (find_or_create_entry): Acknowledge stat () errors during path simplification. (handle_missing_header): Don't simplify paths. (_cpp_simplify_pathname): Don't simplify VMS paths. Return the empty path untouched. Don't leave a trailing '/'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41148 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 5a523e034a1..56ffbb17bc7 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -729,12 +729,7 @@ do_line (pfile)
cpp_get_token (pfile, &token);
if (token.type == CPP_STRING)
{
- char *fname;
- unsigned int len = token.val.str.len + 1;
-
- fname = (char *) _cpp_pool_alloc (&pfile->ident_pool, len);
- memcpy (fname, token.val.str.text, len);
- _cpp_simplify_pathname (fname);
+ const char *fname = (const char *) token.val.str.text;
/* Only accept flags for the # 55 form. */
if (! pfile->state.line_extension)