Hello,

As I see, among latest Mercurial commits official '-O2' support is 
introduced [1] with required '-fno-strict-aliasing' addition.

I want to notice that '-fno-strict-aliasing' is unnecessary when uWSGI 
is compiled for Python 3.x under GCC >= 4.3 [2], so 
'-fno-strict-aliasing' could be added to CFLAGS after matching on Python 
and GCC versions, like:

   gcc_minor = int(gcc_version.split('.')[1])
   if (sys.version_info[0] == 2) or (gcc_major < 4) or (gcc_major == 4 
and gcc_minor < 3):
     cflags = cflags + ['-fno-strict-aliasing']

Sorry me for being lazy and not providing real patch.

[1] http://projects.unbit.it/hg/uwsgi/rev/bd8525e09534
[2] http://bugs.python.org/issue3326
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to