File tree Expand file tree Collapse file tree 4 files changed +29
-7
lines changed Expand file tree Collapse file tree 4 files changed +29
-7
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,10 @@ Build
310
310
311
311
- Issue #25136: Support Apple Xcode 7's new textual SDK stub libraries.
312
312
313
+ - Issue #24324: Do not enable unreachable code warnings when using
314
+ gcc as the option does not work correctly in older versions of gcc
315
+ and has been silently removed as of gcc-4.5.
316
+
313
317
Windows
314
318
-------
315
319
Original file line number Diff line number Diff line change 1
- # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
1
+ # generated automatically by aclocal 1.15 -*- Autoconf -*-
2
2
3
- # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
+ # Copyright (C) 1996-2014 Free Software Foundation, Inc.
4
4
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
Original file line number Diff line number Diff line change @@ -6963,15 +6963,24 @@ fi
6963
6963
6964
6964
CFLAGS=" $save_CFLAGS "
6965
6965
CC=" $ac_save_cc "
6966
- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_enable_unreachable_code_warning " >&5
6967
- $as_echo " $ac_cv_enable_unreachable_code_warning " >&6 ; }
6968
6966
6969
6967
# Don't enable unreachable code warning in debug mode, since it usually
6970
6968
# results in non-standard code paths.
6971
- if test $ac_cv_enable_unreachable_code_warning = yes && test " $Py_DEBUG " ! = " true"
6969
+ # Issue #24324: Unfortunately, the unreachable code warning does not work
6970
+ # correctly on gcc and has been silently removed from the compiler.
6971
+ # It is supported on clang but on OS X systems gcc may be an alias
6972
+ # for clang. Try to determine if the compiler is not really gcc and,
6973
+ # if so, only then enable the warning.
6974
+ if test $ac_cv_enable_unreachable_code_warning = yes && \
6975
+ test " $Py_DEBUG " ! = " true" && \
6976
+ test -z " ` $CC --version 2> /dev/null | grep ' Free Software Foundation' ` "
6972
6977
then
6973
6978
BASECFLAGS=" $BASECFLAGS -Wunreachable-code"
6979
+ else
6980
+ ac_cv_enable_unreachable_code_warning=no
6974
6981
fi
6982
+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $ac_cv_enable_unreachable_code_warning " >&5
6983
+ $as_echo " $ac_cv_enable_unreachable_code_warning " >&6 ; }
6975
6984
6976
6985
# if using gcc on alpha, use -mieee to get (near) full IEEE 754
6977
6986
# support. Without this, treatment of subnormals doesn't follow
Original file line number Diff line number Diff line change @@ -1483,14 +1483,23 @@ yes)
1483
1483
] ) )
1484
1484
CFLAGS="$save_CFLAGS"
1485
1485
CC="$ac_save_cc"
1486
- AC_MSG_RESULT ( $ac_cv_enable_unreachable_code_warning )
1487
1486
1488
1487
# Don't enable unreachable code warning in debug mode, since it usually
1489
1488
# results in non-standard code paths.
1490
- if test $ac_cv_enable_unreachable_code_warning = yes && test "$Py_DEBUG" != "true"
1489
+ # Issue #24324: Unfortunately, the unreachable code warning does not work
1490
+ # correctly on gcc and has been silently removed from the compiler.
1491
+ # It is supported on clang but on OS X systems gcc may be an alias
1492
+ # for clang. Try to determine if the compiler is not really gcc and,
1493
+ # if so, only then enable the warning.
1494
+ if test $ac_cv_enable_unreachable_code_warning = yes && \
1495
+ test "$Py_DEBUG" != "true" && \
1496
+ test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
1491
1497
then
1492
1498
BASECFLAGS="$BASECFLAGS -Wunreachable-code"
1499
+ else
1500
+ ac_cv_enable_unreachable_code_warning=no
1493
1501
fi
1502
+ AC_MSG_RESULT ( $ac_cv_enable_unreachable_code_warning )
1494
1503
1495
1504
# if using gcc on alpha, use -mieee to get (near) full IEEE 754
1496
1505
# support. Without this, treatment of subnormals doesn't follow
You can’t perform that action at this time.
0 commit comments