Sorry, I did not understad you comment, perhaps I was not clear
enough... This is a global var, not one loca to function, then I'm
asking to emit the C code like this:

static const char *__pyx_modulename = "mpi4py.MPI";

See this:

$ grep __pyx_modulename src/mpi4py.MPI.c
const char *__pyx_modulename = "mpi4py.MPI";

$ nm ~/lib/python/mpi4py/MPI.so | grep __pyx_modulename
000c0fa0 D __pyx_modulename

What's the use case for that symbol to be dynamic??

All this was introduced by Robert when implementing the new C division stuff

changeset:   1916:413a75b92fc0
user:        Robert Bradshaw <[email protected]>
date:        Sat Mar 28 02:22:07 2009 -0700
summary:     Use warnings framework for c division.


On Fri, Apr 17, 2009 at 2:39 AM, Stefan Behnel <[email protected]> wrote:
>
> Lisandro Dalcin wrote:
>> Just noticed this line (reported by Intel compiler)
>>
>> const char *__pyx_modulename = "mpi4py.MPI";
>>
>> Any good reason to not make it have "static" storage?
>
> No, it shouldn't be used anywhere else anyway.
>
> Stefan
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
>



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to