summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-03-22 16:38:35 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-03-22 16:38:35 -0400
commitce30e6fd06d9434c9b99162da448d37963fbcf24 (patch)
tree8fa114698e3515724c7230f5173bd35d599308b7 /libiberty
parent3a1ef68af0f80dc73971e7395f91644316ebd8c3 (diff)
downloadgcc-ce30e6fd06d9434c9b99162da448d37963fbcf24.tar.gz
c-pretty-print.c (pp_c_specifier_qualifier_list): Use () rather than [], and move before the element type.
* c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]: Use () rather than [], and move before the element type. * cp-demangle.c (d_print_mod): Use () rather than [] for vectors. From-SVN: r157650
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/cp-demangle.c4
-rw-r--r--libiberty/testsuite/demangle-expected4
3 files changed, 8 insertions, 4 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index cf80e38b3c2..176dd4daf7b 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-22 Jason Merrill <jason@redhat.com>
+
+ * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
+
2010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* Makefile.in (all): Do not use exec.
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index b1319cf3b46..98c64db552f 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -4506,9 +4506,9 @@ d_print_mod (struct d_print_info *dpi,
d_print_comp (dpi, d_left (mod));
return;
case DEMANGLE_COMPONENT_VECTOR_TYPE:
- d_append_string (dpi, " vector[");
+ d_append_string (dpi, " __vector(");
d_print_comp (dpi, d_left (mod));
- d_append_char (dpi, ']');
+ d_append_char (dpi, ')');
return;
default:
diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected
index 010faec475e..672f35216fe 100644
--- a/libiberty/testsuite/demangle-expected
+++ b/libiberty/testsuite/demangle-expected
@@ -3928,10 +3928,10 @@ _Z1fN1SUt_E
f(S::{unnamed type#1})
--format=gnu-v3
_Z1fDv32_f
-f(float vector[32])
+f(float __vector(32))
--format=gnu-v3
_Z1fIfLi4EEvDv_T0__T_
-void f<float, 4>(float vector[4])
+void f<float, 4>(float __vector(4))
--format=gnu-v3
_Z1fI1AEDTclonplfp_fp_EET_
decltype ((operator+)({parm#1}, {parm#1})) f<A>(A)