summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-22 20:38:35 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-22 20:38:35 +0000
commit2c69eb5f93355eb8356e8865977cd70f35a0aebd (patch)
tree8fa114698e3515724c7230f5173bd35d599308b7 /libiberty
parentf48f25b9f69a9a6c67a0fcc942d32bb2bc0559ea (diff)
downloadgcc-2c69eb5f93355eb8356e8865977cd70f35a0aebd.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157650 138bc75d-0d04-0410-961f-82ee72b054a4
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)