aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2015-05-16 23:20:49 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2015-05-16 23:20:49 +0000
commit9261aa4364af939b3fd91f20bf20c8e329434600 (patch)
tree213053f1d47c9995a887e966436d7da82cf37f95
parent499568ed0202754e468970c3572ad560001a83cf (diff)
downloadgcc-9261aa4364af939b3fd91f20bf20c8e329434600.zip
gcc-9261aa4364af939b3fd91f20bf20c8e329434600.tar.gz
gcc-9261aa4364af939b3fd91f20bf20c8e329434600.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/toplev.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ee7f737..87d792d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2015-05-16 Jan HUbicka <hubicka@ucw.cz>
+ * toplev.c (emit_debug_global_declarations): Do not output debug info
+ when doing slim LTO objects.
+
+2015-05-16 Jan HUbicka <hubicka@ucw.cz>
+
* ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
odr_types_equivalent_p): Declare.
(odr_type_p): Use gcc_checking_assert.
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++)