diff options
author | Andreas Krebbel <krebbel@linux.vnet.ibm.com> | 2017-12-18 11:31:06 +0000 |
---|---|---|
committer | Andreas Krebbel <krebbel@gcc.gnu.org> | 2017-12-18 11:31:06 +0000 |
commit | 4aeba1b7659603e49b8edfc0d64aa7790d2ef3fe (patch) | |
tree | 6009ec3df6192e616473d2320d2107dcb49d4f88 /gcc/tree-vect-loop.c | |
parent | bcfaa720a25d9f3bc760a993ee1d949f68e777ef (diff) | |
download | gcc-4aeba1b7659603e49b8edfc0d64aa7790d2ef3fe.zip gcc-4aeba1b7659603e49b8edfc0d64aa7790d2ef3fe.tar.gz gcc-4aeba1b7659603e49b8edfc0d64aa7790d2ef3fe.tar.bz2 |
S/390: PR83420: Improve hotpatch option parsing.
With the attached patch we get rid of the following build failure:
/home/andreas/build/../gcc/gcc/config/s390/s390.c: In function ‘void
s390_option_override()’:
/home/andreas/build/../gcc/gcc/config/s390/s390.c:15361:16: error: ‘char*
strncpy(char*, const char*, size_t)’ specified bound 256 equals destination
size [-Werror=stringop-truncation]
strncpy (s, opt->arg, 256);
~~~~~~~~^~~~~~~~~~~~~~~~~~
gcc/ChangeLog:
2017-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
PR target/83420
* config/s390/s390.c (s390_option_override): Avoid strncpy.
From-SVN: r255777
Diffstat (limited to 'gcc/tree-vect-loop.c')
0 files changed, 0 insertions, 0 deletions