diff options
| author | Maciej W. Rozycki <macro@orcam.me.uk> | 2025-10-06 21:37:27 +0100 |
|---|---|---|
| committer | Maciej W. Rozycki <macro@orcam.me.uk> | 2025-10-06 21:37:27 +0100 |
| commit | 7495d2d21ddbf6f118a950d808e6d501924d290d (patch) | |
| tree | 50e0dfd3761d7877e2b7867a7ca8db6a1e018b17 /gdb/python/py-function.c | |
| parent | dde707a0c4d203a021aa5be5efce729d5b6d1199 (diff) | |
| download | binutils-7495d2d21ddbf6f118a950d808e6d501924d290d.zip binutils-7495d2d21ddbf6f118a950d808e6d501924d290d.tar.gz binutils-7495d2d21ddbf6f118a950d808e6d501924d290d.tar.bz2 | |
IA-64/GAS: Work around format truncation compilation errors
Work around compilation errors:
.../gas/config/tc-ia64.c: In function 'declare_register_set':
.../gas/config/tc-ia64.c:5375:41: error: '%u' directive output may be truncated writing between 1 and 10 bytes into a region of size 8 [-Werror=format-truncation=]
5375 | snprintf (name, sizeof (name), "%s%u", prefix, i);
| ^~
.../gas/config/tc-ia64.c:5375:38: note: directive argument in the range [0, 4294967294]
5375 | snprintf (name, sizeof (name), "%s%u", prefix, i);
| ^~~~~~
.../gas/config/tc-ia64.c:5375:7: note: 'snprintf' output 2 or more bytes (assuming 11) into a destination of size 8
5375 | snprintf (name, sizeof (name), "%s%u", prefix, i);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
observed with GCC 10. Pick 16 for a round 64-bit stack frame size.
Diffstat (limited to 'gdb/python/py-function.c')
0 files changed, 0 insertions, 0 deletions
