aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-11-09 13:14:48 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2010-11-09 05:14:48 -0800
commita618dbe3697d2f4a0dc14e2868f2d95e2a48888a (patch)
tree50eb26cfed1397650c39607842c2656de3ba7158 /gcc
parenta1d8cc63b46d536ce4e66e9ed9999d867f1cc27e (diff)
downloadgcc-a618dbe3697d2f4a0dc14e2868f2d95e2a48888a.zip
gcc-a618dbe3697d2f4a0dc14e2868f2d95e2a48888a.tar.gz
gcc-a618dbe3697d2f4a0dc14e2868f2d95e2a48888a.tar.bz2
Call get_input_file_name to get file name.
2010-11-09 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/46392 * gengtype-parse.c (type): Call get_input_file_name to get file name. From-SVN: r166486
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/gengtype-parse.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3db4991..411cd90 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR bootstrap/46392
+ * gengtype-parse.c (type): Call get_input_file_name to get
+ file name.
+
2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
* tree.h (contains_placeholder_p): Fix comment.
diff --git a/gcc/gengtype-parse.c b/gcc/gengtype-parse.c
index 0f2e0c6..476a9fd 100644
--- a/gcc/gengtype-parse.c
+++ b/gcc/gengtype-parse.c
@@ -751,7 +751,9 @@ type (options_p *optsp, bool nested)
if (token () == ID)
s = advance ();
else
- s = xasprintf ("anonymous:%s:%d", lexer_line.file, lexer_line.line);
+ s = xasprintf ("anonymous:%s:%d",
+ get_input_file_name (lexer_line.file),
+ lexer_line.line);
/* Unfortunately above GTY_TOKEN check does not capture the
typedef struct_type GTY case. */
@@ -788,7 +790,9 @@ type (options_p *optsp, bool nested)
if (token () == ID)
s = advance ();
else
- s = xasprintf ("anonymous:%s:%d", lexer_line.file, lexer_line.line);
+ s = xasprintf ("anonymous:%s:%d",
+ get_input_file_name (lexer_line.file),
+ lexer_line.line);
if (token () == '{')
consume_balanced ('{', '}');