summaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
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)