From 9261aa4364af939b3fd91f20bf20c8e329434600 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 16 May 2015 23:20:49 +0000 Subject: toplev.c (emit_debug_global_declarations): Do not output debug info when doing slim LTO objects. * toplev.c (emit_debug_global_declarations): Do not output debug info when doing slim LTO objects. From-SVN: r223260 --- gcc/toplev.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 3c1ba38..1a65b62 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -570,6 +570,9 @@ emit_debug_global_declarations (tree *vec, int len) /* Avoid confusing the debug information machinery when there are errors. */ if (seen_error ()) return; + /* No need for debug info in object files when producing slimLTO. */ + if (!in_lto_p && flag_lto && !flag_fat_lto_objects) + return; timevar_push (TV_SYMOUT); for (i = 0; i < len; i++) -- cgit v1.1