Avoid -Werror=format-overflow error in dbxout.c (dbxout_block) on 64-bit Solaris...
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 5 Dec 2017 10:03:56 +0000 (10:03 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 5 Dec 2017 10:03:56 +0000 (10:03 +0000)
* dbxout.c (dbxout_block): Grow buf to 30 bytes.

From-SVN: r255406

gcc/ChangeLog
gcc/dbxout.c

index 3959ec6f54eeaf421b997edd3640f2be6313c3b5..9ac3af5647e82eae84412d892f1a396547d1848a 100644 (file)
@@ -1,3 +1,7 @@
+2017-12-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * dbxout.c (dbxout_block): Grow buf to 30 bytes.
+
 2017-12-05  Martin Liska  <mliska@suse.cz>
            Jakub Jelinek  <jakub@redhat.com>
 
index 6976388315e42237b568ab88d48ee205811fdded..290f11b3c467bbec29640b35e3d3aacfb3370c29 100644 (file)
@@ -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;