From: Rainer Orth Date: Tue, 5 Dec 2017 10:03:56 +0000 (+0000) Subject: Avoid -Werror=format-overflow error in dbxout.c (dbxout_block) on 64-bit Solaris... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf2f5c8979022da8fc521e5e7e488e77478194f2;p=gcc.git 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 --- 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;