summaryrefslogtreecommitdiff
path: root/gcc/target.def
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-07 17:23:39 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-07 17:23:39 +0000
commit1651aa771c5d90bfcf9456a86670e430b6eb49a7 (patch)
tree36e5a2d6ff28400d1fe31caff904f627834f515a /gcc/target.def
parent103aa1240a2527d0fd5a3b215d12decd9697168b (diff)
downloadgcc-1651aa771c5d90bfcf9456a86670e430b6eb49a7.tar.gz
gcc
* doc/tm.texi: Update. * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>: Add @hook. * target.def (want_debug_pub_sections): New hook. * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define. * dwarf2out.c (add_pubname_string): Check targetm.want_debug_pub_sections. (add_pubname): Likewise. (add_pubtype): Likewise. gcc/testsuite * g++.dg/debug/dwarf2/pubnames-1.C: Make darwin-specific. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161924 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.def')
-rw-r--r--gcc/target.def7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/target.def b/gcc/target.def
index 627092537f1..3eb52a6fe54 100644
--- a/gcc/target.def
+++ b/gcc/target.def
@@ -2337,6 +2337,13 @@ DEFHOOKPOD
"",
bool, false)
+DEFHOOKPOD
+(want_debug_pub_sections,
+ "True if the @code{.debug_pubtypes} and @code{.debug_pubnames} sections\
+ should be emitted. These sections are not used on most platforms, and\
+ in particular GDB does not use them.",
+ bool, false)
+
/* Leave the boolean fields at the end. */
/* Empty macro arguments are undefined in C90, so use an empty macro. */