-fno-strict-aliasing turned off when cross compiling

Squat'n Dive sndive at gmail.com
Wed Jan 16 17:44:36 EST 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
yes)
    # 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
     ac_save_cc="$CC"
     CC="$CC -fno-strict-aliasing"
     if test "$cross_compiling" = yes; then
  ac_cv_no_strict_aliasing_ok=no
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ why?

else



More information about the Python-list mailing list