This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r249694 - in /trunk/libgomp: ChangeLog env.c pl...
- From: vries at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 27 Jun 2017 15:51:38 -0000
- Subject: r249694 - in /trunk/libgomp: ChangeLog env.c pl...
Author: vries
Date: Tue Jun 27 15:51:37 2017
New Revision: 249694
URL: https://gcc.gnu.org/viewcvs?rev=249694&root=gcc&view=rev
Log:
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.
Added:
trunk/libgomp/secure_getenv.h
trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c
Modified:
trunk/libgomp/ChangeLog
trunk/libgomp/env.c
trunk/libgomp/plugin/plugin-hsa.c