]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use secure_getenv for GOMP_DEBUG
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jun 2017 15:51:37 +0000 (15:51 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Jun 2017 15:51:37 +0000 (15:51 +0000)
commite9f3b6c964585958a7c8be18a832a77b6bba9c67
treee0abf5f9fc8bcbed50120155f56b0f77255f8f87
parent3461db541e63afe7b06f08b02642bd519addba56
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249694 138bc75d-0d04-0410-961f-82ee72b054a4
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]