summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-06-13 22:32:40 +0000
committerJan Kratochvil <jkratoch@gcc.gnu.org>2011-06-13 22:32:40 +0000
commitf019462c62cdba9ffea92d81e0709cb3bcc05e70 (patch)
tree24049e95658da009e3b8bd1958b7b0ead304b317 /include
parent743a99db07908cbc7690ed1fb7c30f8d9e208a8e (diff)
downloadgcc-f019462c62cdba9ffea92d81e0709cb3bcc05e70.tar.gz
demangle.h (DMGL_RET_POSTFIX): Extend the comment.
include/ * demangle.h (DMGL_RET_POSTFIX): Extend the comment. (DMGL_RET_DROP): New. libiberty/ * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP. * testsuite/demangle-expected: New testcases for --ret-drop. * testsuite/test-demangle.c: Document --ret-drop in a comment. (main): New variable ret_drop, fill it, call cplus_demangle with it. From-SVN: r175000
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog5
-rw-r--r--include/demangle.h8
2 files changed, 12 insertions, 1 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 7ad246e44a7..fa0dfac51f3 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * demangle.h (DMGL_RET_POSTFIX): Extend the comment.
+ (DMGL_RET_DROP): New.
+
2011-04-30 Jakub Jelinek <jakub@redhat.com>
* dwarf2.h (DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
diff --git a/include/demangle.h b/include/demangle.h
index c0624559ee2..53f6c54f524 100644
--- a/include/demangle.h
+++ b/include/demangle.h
@@ -45,7 +45,13 @@ extern "C" {
#define DMGL_VERBOSE (1 << 3) /* Include implementation details. */
#define DMGL_TYPES (1 << 4) /* Also try to demangle type encodings. */
#define DMGL_RET_POSTFIX (1 << 5) /* Print function return types (when
- present) after function signature */
+ present) after function signature.
+ It applies only to the toplevel
+ function type. */
+#define DMGL_RET_DROP (1 << 6) /* Suppress printing function return
+ types, even if present. It applies
+ only to the toplevel function type.
+ */
#define DMGL_AUTO (1 << 8)
#define DMGL_GNU (1 << 9)