diff options
author | Simon Martin <simon@nasilyan.com> | 2024-10-10 15:29:32 +0200 |
---|---|---|
committer | Simon Martin <simon@nasilyan.com> | 2024-10-10 15:59:38 +0200 |
commit | c1b2100e736c8ad80479fa6417db760695a00256 (patch) | |
tree | 1b6104e492c0feedc4fed031269e9324200dc343 | |
parent | 7ce2229d54d575d788b016f941aafd0464ea77f7 (diff) | |
download | gcc-c1b2100e736c8ad80479fa6417db760695a00256.zip gcc-c1b2100e736c8ad80479fa6417db760695a00256.tar.gz gcc-c1b2100e736c8ad80479fa6417db760695a00256.tar.bz2 |
libiberty: Restore build with CP_DEMANGLE_DEBUG defined
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.
-rw-r--r-- | libiberty/cp-demangle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c index fc2cf64..5b1bd5d 100644 --- a/libiberty/cp-demangle.c +++ b/libiberty/cp-demangle.c @@ -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: |