public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Don't set DECL_IGNORED_P on a cdtor function
@ 2007-10-04 21:23 Geoffrey Keating
  2007-10-04 21:36 ` Daniel Jacobowitz
  0 siblings, 1 reply; 20+ messages in thread
From: Geoffrey Keating @ 2007-10-04 21:23 UTC (permalink / raw)
  To: gcc-patches


DECL_IGNORED_P shouldn't be set on any function which the user might
want to set a breakpoint in, or which might appear in a stack
backtrace, or which might crash.  This is especially bad for
backtraces, because DECL_IGNORED_P means that there's no DWARF frame
information, which might mean that no further backtracing is possible.

Bootstrapped & tested on powerpc-darwin8.

-- 
- Geoffrey Keating <geoffk@apple.com>

===File ~/patches/gcc-noignoreconstructor.patch=============
2007-10-04  Geoffrey Keating  <geoffk@apple.com>

	* cgraphunit.c (cgraph_build_static_cdtor): Don't set
	DECL_IGNORED_P.

Index: gcc/cgraphunit.c
===================================================================
--- gcc/cgraphunit.c	(revision 128879)
+++ gcc/cgraphunit.c	(working copy)
@@ -1400,7 +1400,6 @@
 
   resdecl = build_decl (RESULT_DECL, NULL_TREE, void_type_node);
   DECL_ARTIFICIAL (resdecl) = 1;
-  DECL_IGNORED_P (resdecl) = 1;
   DECL_RESULT (decl) = resdecl;
 
   allocate_struct_function (decl);
@@ -1408,7 +1407,6 @@
   TREE_STATIC (decl) = 1;
   TREE_USED (decl) = 1;
   DECL_ARTIFICIAL (decl) = 1;
-  DECL_IGNORED_P (decl) = 1;
   DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT (decl) = 1;
   DECL_SAVED_TREE (decl) = body;
   TREE_PUBLIC (decl) = ! targetm.have_ctors_dtors;
============================================================

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2007-10-09 21:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 21:23 Don't set DECL_IGNORED_P on a cdtor function Geoffrey Keating
2007-10-04 21:36 ` Daniel Jacobowitz
2007-10-04 21:58   ` Eric Botcazou
2007-10-04 22:05     ` Daniel Jacobowitz
2007-10-05  5:57       ` Eric Botcazou
2007-10-04 22:13   ` Geoffrey Keating
2007-10-04 22:55     ` Daniel Jacobowitz
2007-10-05  7:33       ` Eric Botcazou
2007-10-05  8:55         ` Eric Botcazou
2007-10-05 14:47     ` Daniel Jacobowitz
2007-10-05 14:52       ` Andrew Haley
2007-10-05 15:11         ` Daniel Jacobowitz
2007-10-06 16:04           ` Eric Botcazou
2007-10-07  9:28             ` Eric Botcazou
2007-10-08 22:27               ` Mark Mitchell
2007-10-09  0:18                 ` Eric Botcazou
2007-10-09  0:35                   ` Mark Mitchell
2007-10-09  4:30                     ` Geoffrey Keating
2007-10-09 21:03                       ` Mark Mitchell
2007-10-09 21:08                         ` Eric Botcazou

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).