]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libiberty: Restore build with CP_DEMANGLE_DEBUG defined
authorSimon Martin <simon@nasilyan.com>
Thu, 10 Oct 2024 13:29:32 +0000 (15:29 +0200)
committerSimon Martin <simon@nasilyan.com>
Thu, 10 Oct 2024 13:59:38 +0000 (15:59 +0200)
cp-demangle.c does not build when CP_DEMANGLE_DEBUG is defined since
r13-2887-gb04208895fed34. This trivial patch fixes the issue.

libiberty/ChangeLog:

* cp-demangle.c (d_dump): Fix compilation when CP_DEMANGLE_DEBUG
is defined.

libiberty/cp-demangle.c

index fc2cf64e6e011c9783cac6a3e08f80d190db44ea..5b1bd5dff2277b7e6b03d04b7a0b6ac3f55db92e 100644 (file)
@@ -655,9 +655,9 @@ d_dump (struct demangle_component *dc, int indent)
       return;
     case DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE:
       {
-       char suffix[2] = { dc->u.s_extended_builtin.type->suffix, 0 };
+       char suffix[2] = { dc->u.s_extended_builtin.suffix, 0 };
        printf ("builtin type %s%d%s\n", dc->u.s_extended_builtin.type->name,
-               dc->u.s_extended_builtin.type->arg, suffix);
+               dc->u.s_extended_builtin.arg, suffix);
       }
       return;
     case DEMANGLE_COMPONENT_OPERATOR: