public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-2578] libgomp: Use libiberty environ.h to declare the environment pointer.
@ 2022-09-10 13:14 Iain D Sandoe
0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2022-09-10 13:14 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7d37c7f67c1bb75f85ad0c07bfff51ca579e1476
commit r13-2578-g7d37c7f67c1bb75f85ad0c07bfff51ca579e1476
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Sat Sep 10 08:54:37 2022 +0100
libgomp: Use libiberty environ.h to declare the environment pointer.
This allows for target-specific mechanisms for finding the pointer.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
libgomp/ChangeLog:
* env.c (initialize_env): Include libiberty environ.h.
Diff:
---
libgomp/env.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgomp/env.c b/libgomp/env.c
index 92f32f72020..ac8c764db60 100644
--- a/libgomp/env.c
+++ b/libgomp/env.c
@@ -60,6 +60,7 @@
#endif /* LIBGOMP_OFFLOADED_ONLY */
#include "secure_getenv.h"
+#include "environ.h"
/* Default values of ICVs according to the OpenMP standard. */
const struct gomp_default_icv gomp_default_icv_values = {
@@ -2033,7 +2034,6 @@ startswith (const char *str, const char *prefix)
static void __attribute__((constructor))
initialize_env (void)
{
- extern char **environ;
char **env;
int omp_var, dev_num = 0, dev_num_len = 0, i;
bool ignore = false;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-10 13:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-10 13:14 [gcc r13-2578] libgomp: Use libiberty environ.h to declare the environment pointer Iain D Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).