This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] Fix libgomp OMP_* env var handling
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Diego Novillo <dnovillo at redhat dot com>, Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Aug 2006 08:13:42 -0700
- Subject: Re: [gomp] Fix libgomp OMP_* env var handling
- References: <20060816114108.GL32572@devserv.devel.redhat.com>
On Wed, 2006-08-16 at 07:41 -0400, Jakub Jelinek wrote:
> Hi!
>
> The OpenMP 2.5 standard says in chapter 4 that the values of the
> environment vars (of course unlike the variable names themselves)
> are case insensitive and can have leading and/or trailing whitespace
> (and in the case of OMP_SCHEDULE can have whitespace before
> and/or after the comma).
> The following patch fixes it, ok for trunk?
My only problem is how portable is strncasecmp? It is a non standard
function and IIRC we don't link libgomp against liberity either.
Thanks,
Andrew Pinski