From: DJ Delorie Date: Mon, 22 Mar 2010 21:39:44 +0000 (+0000) Subject: merge from gcc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9b58c5ba68696e797030f26a469cc432cf20397;p=binutils-gdb.git merge from gcc --- 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 + + * cp-demangle.c (d_print_mod): Use () rather than [] for vectors. + 2010-03-01 Ralf Wildenhues * 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 vector[4]) +void f(float __vector(4)) --format=gnu-v3 _Z1fI1AEDTclonplfp_fp_EET_ decltype ((operator+)({parm#1}, {parm#1})) f(A)