diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-04-18 04:11:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2019-04-18 04:11:22 +0000 |
commit | 5c727cf6259e7f71185fb647b52cbe3907cc4774 (patch) | |
tree | b8471eb63988c582ac946e04f2ad644d953b4884 /gcc/c/c-decl.c | |
parent | 5a58e967b526eba3d9b850cd7bc76dcc580bf708 (diff) | |
download | gcc-5c727cf6259e7f71185fb647b52cbe3907cc4774.zip gcc-5c727cf6259e7f71185fb647b52cbe3907cc4774.tar.gz gcc-5c727cf6259e7f71185fb647b52cbe3907cc4774.tar.bz2 |
re PR go/90110 (libgo fails to build against glibc 2.19)
PR go/90110
compiler: use temporary to avoid early destruction
The code was passing a substr directly to strtol, and then checking
the *end value returned by strtol. But the substr could be destroyed
as soon as strtol returns, making the test of *end invalid.
Also fix an incorrect test of the string index rather than the value.
Fixes https://gcc.gnu.org/PR90110
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/172663
From-SVN: r270434
Diffstat (limited to 'gcc/c/c-decl.c')
0 files changed, 0 insertions, 0 deletions