re PR libgomp/83106 (libgomp/target.c:2671:2: error: ‘strncat’ specified bound 5...
authorJakub Jelinek <jakub@redhat.com>
Wed, 22 Nov 2017 20:49:56 +0000 (21:49 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 22 Nov 2017 20:49:56 +0000 (21:49 +0100)
commitb13547d821af5c24195fe58e040654992c589d86
tree8ea2827a50906a3b8399ed3ba709172ba205d005
parent217e4393f7540b4f32c4eafbe3ffeceeb063eb30
re PR libgomp/83106 (libgomp/target.c:2671:2: error: ‘strncat’ specified bound 5 equals source length [-Werror=stringop-overflow=])

PR libgomp/83106
* target.c (gomp_target_init): Compute lengths just once and
use them in both malloc size and subsequent copying.

From-SVN: r255080
libgomp/ChangeLog
libgomp/target.c