From bf2f5c8979022da8fc521e5e7e488e77478194f2 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Tue, 5 Dec 2017 10:03:56 +0000 Subject: [PATCH] Avoid -Werror=format-overflow error in dbxout.c (dbxout_block) on 64-bit Solaris/SPARC * dbxout.c (dbxout_block): Grow buf to 30 bytes. From-SVN: r255406 --- gcc/ChangeLog | 4 ++++ gcc/dbxout.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3959ec6f54e..9ac3af5647e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-12-05 Rainer Orth + + * dbxout.c (dbxout_block): Grow buf to 30 bytes. + 2017-12-05 Martin Liska Jakub Jelinek diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 6976388315e..290f11b3c46 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -3844,7 +3844,7 @@ dbxout_block (tree block, int depth, tree args, int parent_blocknum) /* If we emitted any vars and didn't output any LBRAC/RBRAC, either at this level or any lower level, we need to emit an empty LBRAC/RBRAC pair now. */ - char buf[20]; + char buf[30]; const char *scope_start; ret = true; -- 2.30.2