aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorKai Tietz <ktietz@redhat.com>2011-03-21 09:32:50 +0100
committerKai Tietz <ktietz@gcc.gnu.org>2011-03-21 09:32:50 +0100
commit5050afdf0f1279bd2190b672bc6312aea9f7305f (patch)
tree5ed13e5b3cc506456eb82dc8e01503a616f1804b /gcc/cp/error.c
parent62d784f7bdc63b09b0e2cee98aba71c921e2479c (diff)
downloadgcc-5050afdf0f1279bd2190b672bc6312aea9f7305f.zip
gcc-5050afdf0f1279bd2190b672bc6312aea9f7305f.tar.gz
gcc-5050afdf0f1279bd2190b672bc6312aea9f7305f.tar.bz2
ChangeLog gcc/c-family
2011-03-21 Kai Tietz <ktietz@redhat.com> PR target/12171 * c-pretty-print.c (pp_c_specifier_qualifier_list): Display allowed attributes for function pointer types. (pp_c_attributes_display): New function to display attributes having affects_type_identity flag set to true. * c-pretty-print.h (pp_c_attributes_display): New prototype. ChangeLog gcc/cp 2011-03-21 Kai Tietz <ktietz@redhat.com> PR target/12171 * cxx-pretty-print.c (pp_cxx_ptr_operator): Display allowed attributes for function pointer types. * error.c (dump_type_prefix): Likewise. From-SVN: r171210
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 28305d2..ec9b9fe 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -661,6 +661,8 @@ dump_type_prefix (tree t, int flags)
{
pp_cxx_whitespace (cxx_pp);
pp_cxx_left_paren (cxx_pp);
+ pp_c_attributes_display (pp_c_base (cxx_pp),
+ TYPE_ATTRIBUTES (sub));
}
if (TREE_CODE (t) == POINTER_TYPE)
pp_character(cxx_pp, '*');