OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gold/] [configure.ac] - Diff between revs 163 and 166

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 163 Rev 166
Line 310... Line 310...
#elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
#elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
error
error
#endif
#endif
], [gold_cv_prog_gcc41=yes], [gold_cv_prog_gcc41=no])])
], [gold_cv_prog_gcc41=yes], [gold_cv_prog_gcc41=no])])
 
 
 
save_CFLAGS="$CFLAGS"
 
CFLAGS="$CFLAGS -mcmodel=medium"
 
AC_COMPILE_IFELSE([int i;], [have_mcmodel_medium=yes], [have_mcmodel_medium=no])
 
CFLAGS="$save_CFLAGS"
dnl Whether we can test -mcmodel=medium.
dnl Whether we can test -mcmodel=medium.
AM_CONDITIONAL(MCMODEL_MEDIUM,
AM_CONDITIONAL(MCMODEL_MEDIUM,
[test "$target_cpu" = "x86_64" -a "$gold_cv_prog_gcc41" = "yes"])
[test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"])
 
 
dnl Test for __thread support.
dnl Test for __thread support.
AC_CACHE_CHECK([for thread support], [gold_cv_c_thread],
AC_CACHE_CHECK([for thread support], [gold_cv_c_thread],
[AC_COMPILE_IFELSE([__thread int i = 1;],
[AC_COMPILE_IFELSE([__thread int i = 1;],
[gold_cv_c_thread=yes], [gold_cv_c_thread=no])])
[gold_cv_c_thread=yes], [gold_cv_c_thread=no])])
Line 353... Line 357...
fi
fi
AM_CONDITIONAL(OMP_SUPPORT, test "$gold_cv_c_threadprivate" = "yes")
AM_CONDITIONAL(OMP_SUPPORT, test "$gold_cv_c_threadprivate" = "yes")
 
 
dnl Test for the -ftls-dialect=gnu2 option.
dnl Test for the -ftls-dialect=gnu2 option.
save_CFLAGS="$CFLAGS"
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -mtls-dialect=gnu2"
CFLAGS="$CFLAGS -fpic -mtls-dialect=gnu2"
AC_COMPILE_IFELSE([int i;], [have_tls_gnu2=yes], [have_tls_gnu2=no])
AC_COMPILE_IFELSE([
 
__thread int i;
 
void foo (void)
 
{
 
  i = 10;
 
}
 
], [have_tls_gnu2=yes], [have_tls_gnu2=no])
CFLAGS="$save_CFLAGS"
CFLAGS="$save_CFLAGS"
AM_CONDITIONAL(TLS_GNU2_DIALECT, test "$have_tls_gnu2" = "yes")
AM_CONDITIONAL(TLS_GNU2_DIALECT, test "$have_tls_gnu2" = "yes")
 
 
dnl On GNU/Linux TLS descriptors are supported by the dynamic loader
dnl On GNU/Linux TLS descriptors are supported by the dynamic loader
dnl only with glibc 2.9 or later.
dnl only with glibc 2.9 or later.

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.