diff options
author | Tom Tromey <tromey@redhat.com> | 2008-03-21 15:59:38 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-03-21 15:59:38 +0000 |
commit | dd2a849318adea7d6cdcd94bac85f1eaffb78875 (patch) | |
tree | 9db82b90eb1691eb0a929cb2a6a5635ce63519a3 | |
parent | f69e50c637775a76feddda44e0443d90538a73c8 (diff) |
* lex.c (handle_pragma_implementation): Don't call ggc_strdup.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/incremental-compiler@133430 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/lex.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2d75d64d4c4..dc996cc1c40 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2008-03-21 Tom Tromey <tromey@redhat.com> + + * lex.c (handle_pragma_implementation): Don't call ggc_strdup. + 2008-03-19 Tom Tromey <tromey@redhat.com> * mangle.c (finish_mangling_get_identifier): Fix typo. diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index 1f249d17699..73e858f0ea0 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -1,6 +1,6 @@ /* Separate lexical analyzer for GNU C++. Copyright (C) 1987, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc. Hacked by Michael Tiemann (tiemann@cygnus.com) @@ -572,7 +572,7 @@ handle_pragma_implementation (cpp_reader* dfile ATTRIBUTE_UNUSED ) } else { - filename = ggc_strdup (TREE_STRING_POINTER (fname)); + filename = TREE_STRING_POINTER (fname); #ifdef USE_MAPPED_LOCATION /* We currently cannot give this diagnostic, as we reach this point only after cpplib has scanned the entire translation unit, so |