]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgomp/env.c
Use secure_getenv for GOMP_DEBUG
authorTom de Vries <tom@codesourcery.com>
Tue, 27 Jun 2017 15:51:37 +0000 (15:51 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 27 Jun 2017 15:51:37 +0000 (15:51 +0000)
commit22f1a03704bbb15cf766af822a17a41ac9f57121
treee0abf5f9fc8bcbed50120155f56b0f77255f8f87
parent5fee5eca5fe329cfd6c6fc1ae81d4da566a57431
Use secure_getenv for GOMP_DEBUG

2017-06-27  Tom de Vries  <tom@codesourcery.com>

* env.c (parse_unsigned_long_1): Factor out of ...
(parse_unsigned_long): ... here.
(parse_int_1): Factor out of ...
(parse_int): ... here.
(parse_int_secure): New function.
(initialize_env): Use parse_int_secure for GOMP_DEBUG.
* secure_getenv.h: Factor out of ...
* plugin/plugin-hsa.c: ... here.
* testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.

From-SVN: r249694
libgomp/ChangeLog
libgomp/env.c
libgomp/plugin/plugin-hsa.c
libgomp/secure_getenv.h [new file with mode: 0644]
libgomp/testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c [new file with mode: 0644]