aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorMaxim Ostapenko <chefmax@gcc.gnu.org>2017-01-23 11:12:29 +0200
committerMaxim Ostapenko <chefmax@gcc.gnu.org>2017-01-23 11:12:29 +0200
commite3d53f96ed595fd6e8bef75f166a93e5309b0c2a (patch)
treeb00bc74146414cdc735ba7984a03a985eb0aeb9b /gcc/tree.c
parent54d7c70c08b5b4a0180269301d466cc5e3d951b5 (diff)
downloadgcc-e3d53f96ed595fd6e8bef75f166a93e5309b0c2a.zip
gcc-e3d53f96ed595fd6e8bef75f166a93e5309b0c2a.tar.gz
gcc-e3d53f96ed595fd6e8bef75f166a93e5309b0c2a.tar.bz2
re PR lto/79061 ([LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco")
Revert fix for PR lto/79061 due to this regresses compile-time by 100% on some fortran cases. From-SVN: r244773
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);