aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 7127bd2..14f0452 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -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);