-fno-strict-aliasing turned off when cross compiling

Squat'n Dive sndive at gmail.com
Wed Jan 16 23:44:36 CET 2008

Does anyone have an idea why -fno-strict-aliasing is turned off when
cross compiling?

in configure generated for 2.4.4:

case $GCC in
    # Python violates C99 rules, by casting between incompatible
    # pointer types. GCC may generate bad code as a result of that,
    # so use -fno-strict-aliasing if supported.
    echo "$as_me:$LINENO: checking whether $CC accepts -fno-strict-
aliasing" >&5
echo $ECHO_N "checking whether $CC accepts -fno-strict-aliasing...
$ECHO_C" >&6
     CC="$CC -fno-strict-aliasing"
     if test "$cross_compiling" = yes; then
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ why?


More information about the Python-list mailing list