diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-04-06 07:22:01 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-04-06 07:22:01 +0000 |
commit | f9200da26d1cc1df956aa14ba1f6fcfaf730c221 (patch) | |
tree | c15a70516f598de133ec9104c90fc14238a59310 /gcc/cpplib.c | |
parent | 0bda3da7ab8eba3f5c5e3c91ebd191698ebbf288 (diff) | |
download | gcc-f9200da26d1cc1df956aa14ba1f6fcfaf730c221.zip gcc-f9200da26d1cc1df956aa14ba1f6fcfaf730c221.tar.gz gcc-f9200da26d1cc1df956aa14ba1f6fcfaf730c221.tar.bz2 |
configure.in: Add check for lstat.
* 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 '/'.
From-SVN: r41148
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r-- | gcc/cpplib.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 5a523e0..56ffbb1 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) |