mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
* acconfig.h: added BROKEN_GCSE.
* configure.in: check for a gcc GCSE optimisation bug.
This commit is contained in:
parent
005b59783e
commit
aec1eb3048
2 changed files with 30 additions and 0 deletions
|
@ -154,3 +154,6 @@
|
|||
|
||||
/* Define if the compiler supports long longs. */
|
||||
#undef HAVE_LONG_LONGS
|
||||
|
||||
/* Define if GCC has GCSE optimisation bug. */
|
||||
#undef BROKEN_GCSE
|
||||
|
|
27
configure.in
27
configure.in
|
@ -129,6 +129,33 @@ if test "$scm_cv_long_longs" = yes; then
|
|||
AC_DEFINE(HAVE_LONG_LONGS)
|
||||
fi
|
||||
|
||||
dnl check for an optimisation problem which is present in some versions
|
||||
dnl of gcc, including 2.95.2.
|
||||
AC_MSG_CHECKING(for broken GCSE optimisation)
|
||||
AC_CACHE_VAL(guile_cv_broken_gcse,
|
||||
AC_TRY_RUN([
|
||||
int main ()
|
||||
{
|
||||
long winds = 0;
|
||||
|
||||
while (winds != 0)
|
||||
{
|
||||
if (*(char *) 0)
|
||||
break;
|
||||
}
|
||||
|
||||
if (winds == 0 || *(char *) 0)
|
||||
exit (0);
|
||||
|
||||
return 0;
|
||||
}],
|
||||
guile_cv_broken_gcse=no, guile_cv_broken_gcse=yes,
|
||||
guile_cv_broken_gcse=yes))
|
||||
AC_MSG_RESULT($guile_cv_broken_gcse)
|
||||
if test $guile_cv_broken_gcse = yes; then
|
||||
AC_DEFINE(BROKEN_GCSE)
|
||||
fi
|
||||
|
||||
AC_HEADER_STDC
|
||||
AC_HEADER_DIRENT
|
||||
AC_HEADER_TIME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue