]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Call get_input_file_name to get file name.
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 9 Nov 2010 13:14:48 +0000 (13:14 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 9 Nov 2010 13:14:48 +0000 (05:14 -0800)
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

gcc/ChangeLog
gcc/gengtype-parse.c

index 3db49916f733a5c4818fcb76ac77376e11f77a17..411cd90de63022e35738b01d3949cafbbbe392e5 100644 (file)
@@ -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.
index 0f2e0c6463b2290c1cd9c9bb77c90ea8e5419a95..476a9fd203c6227188e81158a2c47f189854df32 100644 (file)
@@ -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 ('{', '}');