> From: Jason Merrill <ja...@redhat.com>
> Date: Fri, 6 Jan 2012 22:38:28 +0100

>     include/
>         * demangle.h (enum demangle_component_type): Add
>         DEMANGLE_COMPONENT_INITIALIZER_LIST, DEMANGLE_COMPONENT_NULLARY.
> 
> diff --git a/include/demangle.h b/include/demangle.h
> index 98b11d7..34b3ed3 100644
> --- a/include/demangle.h
> +++ b/include/demangle.h
> @@ -344,6 +344,9 @@ enum demangle_component_type
>       template argument, and the right subtree is either NULL or
>       another TEMPLATE_ARGLIST node.  */
>    DEMANGLE_COMPONENT_TEMPLATE_ARGLIST,
> +  /* An initializer list.  The left subtree is either an explicit type or
> +     NULL, and the right subtree is a DEMANGLE_COMPONENT_ARGLIST.  */
> +  DEMANGLE_COMPONENT_INITIALIZER_LIST,
>    /* An operator.  This holds information about a standard
>       operator.  */
>    DEMANGLE_COMPONENT_OPERATOR,
> @@ -353,6 +356,8 @@ enum demangle_component_type
>    /* A typecast, represented as a unary operator.  The one subtree is
>       the type to which the argument should be cast.  */
>    DEMANGLE_COMPONENT_CAST,
> +  /* A nullary expression.  The left subtree is the operator.  */
> +  DEMANGLE_COMPONENT_NULLARY,
>    /* A unary expression.  The left subtree is the operator, and the
>       right subtree is the single argument.  */
>    DEMANGLE_COMPONENT_UNARY,

Please commit this too to binutils CVS, it's apparently missing
in the CVS commit and thus binutils et al broken as follows:

gcc -O2 -m32 -c -DHAVE_CONFIG_H -g -O2  -I. 
-I/tmp/hpautotest-binutils/bsrc/src/libiberty/../include  -W -Wall 
-Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  
/tmp/hpautotest-binutils/bsrc/src/libiberty/cp-demangle.c -o cp-demangle.o
/tmp/hpautotest-binutils/bsrc/src/libiberty/cp-demangle.c: In function 
'd_make_comp':
/tmp/hpautotest-binutils/bsrc/src/libiberty/cp-demangle.c:851: error: 
'DEMANGLE_COMPONENT_NULLARY' undeclared (first use in this function)
/tmp/hpautotest-binutils/bsrc/src/libiberty/cp-demangle.c:851: error: (Each 
undeclared identifier is reported only once
/tmp/hpautotest-binutils/bsrc/src/libiberty/cp-demangle.c:851: error: for each 
function it appears in.)
(etc.)

brgds, H-P

Reply via email to