public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Do not add_location_or_const_value_attribute in early dwarf
@ 2015-09-18  8:56 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2015-09-18  8:56 UTC (permalink / raw)
  To: gcc-patches


Bootstrapped and tested on x86_64-unknown-linux-gnu, gdb testsuite without
regressions, applied.

Richard.

2015-09-18  Richard Biener  <rguenther@suse.de>

	* dwarf2out.c (add_location_or_const_value_attribute): Do nothing
	in early-dwarf.

Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c	(revision 227898)
+++ gcc/dwarf2out.c	(working copy)
@@ -16145,6 +16145,9 @@ add_location_or_const_value_attribute (d
   var_loc_list *loc_list;
   cached_dw_loc_list *cache;
 
+  if (early_dwarf)
+    return false;
+
   if (TREE_CODE (decl) == ERROR_MARK)
     return false;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-18  8:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-18  8:56 [PATCH] Do not add_location_or_const_value_attribute in early dwarf Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).