diff options
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -4758,10 +4758,7 @@ vec<tree, va_gc> *all_translation_units; tree build_translation_unit_decl (tree name) { - linemap_add (line_table, LC_ENTER, false, main_input_filename, 1); - location_t loc = linemap_line_start (line_table, 1, 0); - linemap_add (line_table, LC_LEAVE, false, NULL, 0); - tree tu = build_decl (loc, TRANSLATION_UNIT_DECL, + tree tu = build_decl (UNKNOWN_LOCATION, TRANSLATION_UNIT_DECL, name, NULL_TREE); TRANSLATION_UNIT_LANGUAGE (tu) = lang_hooks.name; vec_safe_push (all_translation_units, tu); |