From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123635 invoked by alias); 29 Aug 2015 13:20:01 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 123598 invoked by uid 89); 29 Aug 2015 13:20:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-wi0-f169.google.com Received: from mail-wi0-f169.google.com (HELO mail-wi0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 29 Aug 2015 13:20:00 +0000 Received: by wifs6 with SMTP id s6so7099554wif.1; Sat, 29 Aug 2015 06:19:57 -0700 (PDT) X-Received: by 10.180.105.202 with SMTP id go10mr9963206wib.91.1440854397003; Sat, 29 Aug 2015 06:19:57 -0700 (PDT) Received: from [192.168.1.17] (5-49-98-41.hfc.dyn.abo.bbox.fr. [5.49.98.41]) by smtp.gmail.com with ESMTPSA id j7sm12814453wjz.11.2015.08.29.06.19.55 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 29 Aug 2015 06:19:55 -0700 (PDT) From: FX Content-Type: multipart/mixed; boundary="Apple-Mail=_41F0D722-CB89-4872-AB43-D0B4E136BF02" Subject: [libgfortran,committed] Cleanups Date: Sat, 29 Aug 2015 13:51:00 -0000 Message-Id: <0EA69FE9-D18E-403F-B88C-ECDF12EADB8B@gmail.com> Cc: gfortran To: gcc patches Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3083\)) X-SW-Source: 2015-08/txt/msg01832.txt.bz2 --Apple-Mail=_41F0D722-CB89-4872-AB43-D0B4E136BF02 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Content-length: 307 Committed the two attached patches doing some minor cleanup in libgfortran: - removed unused =E2=80=9Cmin=E2=80=9D macro in io/unix.c - remove some unused configure checks (functions we check for but don=E2= =80=99t use the result) Regtested on x86_64-apple-darwin15, then committed separately. FX --Apple-Mail=_41F0D722-CB89-4872-AB43-D0B4E136BF02 Content-Disposition: attachment; filename=z1.diff Content-Type: application/octet-stream; name="z1.diff" Content-Transfer-Encoding: 7bit Content-length: 881 Index: io/unix.c =================================================================== --- io/unix.c (revision 227316) +++ io/unix.c (working copy) @@ -110,17 +110,6 @@ id_from_fd (const int fd) #endif /* __MINGW32__ */ -/* min macro that evaluates its arguments only once. */ -#ifdef min -#undef min -#endif - -#define min(a,b) \ - ({ typeof (a) _a = (a); \ - typeof (b) _b = (b); \ - _a < _b ? _a : _b; }) - - /* These flags aren't defined on all targets (mingw32), so provide them here. */ #ifndef S_IRGRP Index: ChangeLog =================================================================== --- ChangeLog (revision 227316) +++ ChangeLog (working copy) @@ -1,3 +1,7 @@ +2015-08-29 Francois-Xavier Coudert + + * io/unix.c (min): Remove unused macro. + 2015-08-28 Francois-Xavier Coudert PR fortran/53668 --Apple-Mail=_41F0D722-CB89-4872-AB43-D0B4E136BF02 Content-Disposition: attachment; filename=z2.diff Content-Type: application/octet-stream; name="z2.diff" Content-Transfer-Encoding: 7bit Content-length: 21265 Index: ChangeLog =================================================================== --- ChangeLog (revision 227317) +++ ChangeLog (working copy) @@ -1,5 +1,14 @@ 2015-08-29 Francois-Xavier Coudert + * acinclude.m4: Remove LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT. + * configure.ac: Remove checks for strcasestr, execl, close, + getrlimit, readlink, getppid, powl, erfl, j0l, j1l, y0l, y1l, + tgammal, and lgammal. + * config.h.in: Regenerate. + * configure: Regenerate. + +2015-08-29 Francois-Xavier Coudert + * io/unix.c (min): Remove unused macro. 2015-08-28 Francois-Xavier Coudert Index: acinclude.m4 =================================================================== --- acinclude.m4 (revision 227316) +++ acinclude.m4 (working copy) @@ -43,21 +43,6 @@ AC_DEFUN([LIBGFOR_CHECK_ATTRIBUTE_VISIBI [Define to 1 if the target supports __attribute__((visibility(...))).]) fi]) -dnl Check whether the target supports dllexport -AC_DEFUN([LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT], [ - AC_CACHE_CHECK([whether the target supports dllexport], - libgfor_cv_have_attribute_dllexport, [ - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror" - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[void __attribute__((dllexport)) foo(void) { }]], [])], - libgfor_cv_have_attribute_dllexport=yes, - libgfor_cv_have_attribute_dllexport=no) - CFLAGS="$save_CFLAGS"]) - if test $libgfor_cv_have_attribute_dllexport = yes; then - AC_DEFINE(HAVE_ATTRIBUTE_DLLEXPORT, 1, - [Define to 1 if the target supports __attribute__((dllexport)).]) - fi]) - dnl Check whether the target supports symbol aliases. AC_DEFUN([LIBGFOR_CHECK_ATTRIBUTE_ALIAS], [ AC_CACHE_CHECK([whether the target supports symbol aliases], Index: config.h.in =================================================================== --- config.h.in (revision 227316) +++ config.h.in (working copy) @@ -75,9 +75,6 @@ /* Define to 1 if the target supports __attribute__((alias(...))). */ #undef HAVE_ATTRIBUTE_ALIAS -/* Define to 1 if the target supports __attribute__((dllexport)). */ -#undef HAVE_ATTRIBUTE_DLLEXPORT - /* Define to 1 if the target supports __attribute__((visibility(...))). */ #undef HAVE_ATTRIBUTE_VISIBILITY @@ -219,9 +216,6 @@ /* Define to 1 if you have the `clogl' function. */ #undef HAVE_CLOGL -/* Define to 1 if you have the `close' function. */ -#undef HAVE_CLOSE - /* Define to 1 if you have the header file. */ #undef HAVE_COMPLEX_H @@ -330,12 +324,6 @@ /* Define to 1 if you have the `erff' function. */ #undef HAVE_ERFF -/* Define to 1 if you have the `erfl' function. */ -#undef HAVE_ERFL - -/* Define to 1 if you have the `execl' function. */ -#undef HAVE_EXECL - /* Define to 1 if you have the `exp' function. */ #undef HAVE_EXP @@ -462,18 +450,12 @@ /* Define to 1 if you have the `getpid' function. */ #undef HAVE_GETPID -/* Define to 1 if you have the `getppid' function. */ -#undef HAVE_GETPPID - /* Define to 1 if you have the `getpwuid' function. */ #undef HAVE_GETPWUID /* Define to 1 if you have the `getpwuid_r' function. */ #undef HAVE_GETPWUID_R -/* Define to 1 if you have the `getrlimit' function. */ -#undef HAVE_GETRLIMIT - /* Define to 1 if you have the `getrusage' function. */ #undef HAVE_GETRUSAGE @@ -510,18 +492,12 @@ /* Define to 1 if you have the `j0f' function. */ #undef HAVE_J0F -/* Define to 1 if you have the `j0l' function. */ -#undef HAVE_J0L - /* Define to 1 if you have the `j1' function. */ #undef HAVE_J1 /* Define to 1 if you have the `j1f' function. */ #undef HAVE_J1F -/* Define to 1 if you have the `j1l' function. */ -#undef HAVE_J1L - /* Define to 1 if you have the `jn' function. */ #undef HAVE_JN @@ -549,9 +525,6 @@ /* Define to 1 if you have the `lgammaf' function. */ #undef HAVE_LGAMMAF -/* Define to 1 if you have the `lgammal' function. */ -#undef HAVE_LGAMMAL - /* Define to 1 if you have the `m' library (-lm). */ #undef HAVE_LIBM @@ -636,18 +609,12 @@ /* Define to 1 if you have the `powf' function. */ #undef HAVE_POWF -/* Define to 1 if you have the `powl' function. */ -#undef HAVE_POWL - /* Define to 1 if the system has the type `ptrdiff_t'. */ #undef HAVE_PTRDIFF_T /* Define to 1 if you have the header file. */ #undef HAVE_PWD_H -/* Define to 1 if you have the `readlink' function. */ -#undef HAVE_READLINK - /* Define to 1 if you have the `round' function. */ #undef HAVE_ROUND @@ -714,9 +681,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H -/* Define to 1 if you have the `strcasestr' function. */ -#undef HAVE_STRCASESTR - /* Define to 1 if you have the `strerror_l' function. */ #undef HAVE_STRERROR_L @@ -801,9 +765,6 @@ /* Define to 1 if you have the `tgammaf' function. */ #undef HAVE_TGAMMAF -/* Define to 1 if you have the `tgammal' function. */ -#undef HAVE_TGAMMAL - /* Define to 1 if you have the `times' function. */ #undef HAVE_TIMES @@ -852,18 +813,12 @@ /* Define to 1 if you have the `y0f' function. */ #undef HAVE_Y0F -/* Define to 1 if you have the `y0l' function. */ -#undef HAVE_Y0L - /* Define to 1 if you have the `y1' function. */ #undef HAVE_Y1 /* Define to 1 if you have the `y1f' function. */ #undef HAVE_Y1F -/* Define to 1 if you have the `y1l' function. */ -#undef HAVE_Y1L - /* Define to 1 if you have the `yn' function. */ #undef HAVE_YN Index: configure =================================================================== --- configure (revision 227316) +++ configure (working copy) @@ -2569,12 +2569,8 @@ as_fn_append ac_func_list " ttyname" as_fn_append ac_func_list " alarm" as_fn_append ac_func_list " access" as_fn_append ac_func_list " fork" -as_fn_append ac_func_list " execl" as_fn_append ac_func_list " setmode" -as_fn_append ac_func_list " close" as_fn_append ac_func_list " fcntl" -as_fn_append ac_func_list " strcasestr" -as_fn_append ac_func_list " getrlimit" as_fn_append ac_func_list " gettimeofday" as_fn_append ac_func_list " stat" as_fn_append ac_func_list " fstat" @@ -2588,10 +2584,8 @@ as_fn_append ac_func_list " gmtime_r" as_fn_append ac_func_list " getpwuid_r" as_fn_append ac_func_list " ttyname_r" as_fn_append ac_func_list " clock_gettime" -as_fn_append ac_func_list " readlink" as_fn_append ac_func_list " getgid" as_fn_append ac_func_list " getpid" -as_fn_append ac_func_list " getppid" as_fn_append ac_func_list " getuid" as_fn_append ac_func_list " geteuid" as_fn_append ac_func_list " umask" @@ -12369,7 +12363,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12372 "configure" +#line 12366 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -12475,7 +12469,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 12478 "configure" +#line 12472 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -16494,9 +16488,6 @@ $as_echo "#define HAVE_STRTOF 1" >>confd $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h -$as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h - - $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h @@ -16636,18 +16627,6 @@ done - - - - - - - - - - - - fi # Check strerror_r, cannot be above as versions with two and three arguments exist @@ -20882,54 +20861,6 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5 -$as_echo_n "checking for powl... " >&6; } -if test "${gcc_cv_math_func_powl+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test x$gcc_no_link = xyes; then - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 -fi -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef HAVE_COMPLEX_H -#include -#endif -#ifdef HAVE_MATH_H -#include -#endif - -int (*ptr)() = (int (*)())powl; - -int -main () -{ - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gcc_cv_math_func_powl=yes -else - gcc_cv_math_func_powl=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5 -$as_echo "$gcc_cv_math_func_powl" >&6; } - if test $gcc_cv_math_func_powl = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_POWL 1 -_ACEOF - - fi - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5 $as_echo_n "checking for cpowf... " >&6; } if test "${gcc_cv_math_func_cpowf+set}" = set; then : @@ -23330,54 +23261,6 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5 -$as_echo_n "checking for erfl... " >&6; } -if test "${gcc_cv_math_func_erfl+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test x$gcc_no_link = xyes; then - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 -fi -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef HAVE_COMPLEX_H -#include -#endif -#ifdef HAVE_MATH_H -#include -#endif - -int (*ptr)() = (int (*)())erfl; - -int -main () -{ - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gcc_cv_math_func_erfl=yes -else - gcc_cv_math_func_erfl=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5 -$as_echo "$gcc_cv_math_func_erfl" >&6; } - if test $gcc_cv_math_func_erfl = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_ERFL 1 -_ACEOF - - fi - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5 $as_echo_n "checking for erfcf... " >&6; } if test "${gcc_cv_math_func_erfcf+set}" = set; then : @@ -23618,54 +23501,6 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5 -$as_echo_n "checking for j0l... " >&6; } -if test "${gcc_cv_math_func_j0l+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test x$gcc_no_link = xyes; then - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 -fi -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef HAVE_COMPLEX_H -#include -#endif -#ifdef HAVE_MATH_H -#include -#endif - -int (*ptr)() = (int (*)())j0l; - -int -main () -{ - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gcc_cv_math_func_j0l=yes -else - gcc_cv_math_func_j0l=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5 -$as_echo "$gcc_cv_math_func_j0l" >&6; } - if test $gcc_cv_math_func_j0l = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_J0L 1 -_ACEOF - - fi - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5 $as_echo_n "checking for j1f... " >&6; } if test "${gcc_cv_math_func_j1f+set}" = set; then : @@ -23762,54 +23597,6 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5 -$as_echo_n "checking for j1l... " >&6; } -if test "${gcc_cv_math_func_j1l+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test x$gcc_no_link = xyes; then - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 -fi -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef HAVE_COMPLEX_H -#include -#endif -#ifdef HAVE_MATH_H -#include -#endif - -int (*ptr)() = (int (*)())j1l; - -int -main () -{ - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gcc_cv_math_func_j1l=yes -else - gcc_cv_math_func_j1l=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5 -$as_echo "$gcc_cv_math_func_j1l" >&6; } - if test $gcc_cv_math_func_j1l = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_J1L 1 -_ACEOF - - fi - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5 $as_echo_n "checking for jnf... " >&6; } if test "${gcc_cv_math_func_jnf+set}" = set; then : @@ -24050,54 +23837,6 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5 -$as_echo_n "checking for y0l... " >&6; } -if test "${gcc_cv_math_func_y0l+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test x$gcc_no_link = xyes; then - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 -fi -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef HAVE_COMPLEX_H -#include -#endif -#ifdef HAVE_MATH_H -#include -#endif - -int (*ptr)() = (int (*)())y0l; - -int -main () -{ - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gcc_cv_math_func_y0l=yes -else - gcc_cv_math_func_y0l=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5 -$as_echo "$gcc_cv_math_func_y0l" >&6; } - if test $gcc_cv_math_func_y0l = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_Y0L 1 -_ACEOF - - fi - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5 $as_echo_n "checking for y1f... " >&6; } if test "${gcc_cv_math_func_y1f+set}" = set; then : @@ -24194,54 +23933,6 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5 -$as_echo_n "checking for y1l... " >&6; } -if test "${gcc_cv_math_func_y1l+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test x$gcc_no_link = xyes; then - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 -fi -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef HAVE_COMPLEX_H -#include -#endif -#ifdef HAVE_MATH_H -#include -#endif - -int (*ptr)() = (int (*)())y1l; - -int -main () -{ - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gcc_cv_math_func_y1l=yes -else - gcc_cv_math_func_y1l=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5 -$as_echo "$gcc_cv_math_func_y1l" >&6; } - if test $gcc_cv_math_func_y1l = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_Y1L 1 -_ACEOF - - fi - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5 $as_echo_n "checking for ynf... " >&6; } if test "${gcc_cv_math_func_ynf+set}" = set; then : @@ -24482,54 +24173,6 @@ _ACEOF - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5 -$as_echo_n "checking for tgammal... " >&6; } -if test "${gcc_cv_math_func_tgammal+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test x$gcc_no_link = xyes; then - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 -fi -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef HAVE_COMPLEX_H -#include -#endif -#ifdef HAVE_MATH_H -#include -#endif - -int (*ptr)() = (int (*)())tgammal; - -int -main () -{ - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gcc_cv_math_func_tgammal=yes -else - gcc_cv_math_func_tgammal=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5 -$as_echo "$gcc_cv_math_func_tgammal" >&6; } - if test $gcc_cv_math_func_tgammal = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_TGAMMAL 1 -_ACEOF - - fi - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5 $as_echo_n "checking for lgamma... " >&6; } if test "${gcc_cv_math_func_lgamma+set}" = set; then : @@ -24624,54 +24267,6 @@ _ACEOF fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5 -$as_echo_n "checking for lgammal... " >&6; } -if test "${gcc_cv_math_func_lgammal+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - if test x$gcc_no_link = xyes; then - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 -fi -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef HAVE_COMPLEX_H -#include -#endif -#ifdef HAVE_MATH_H -#include -#endif - -int (*ptr)() = (int (*)())lgammal; - -int -main () -{ - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gcc_cv_math_func_lgammal=yes -else - gcc_cv_math_func_lgammal=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5 -$as_echo "$gcc_cv_math_func_lgammal" >&6; } - if test $gcc_cv_math_func_lgammal = yes; then - -cat >>confdefs.h <<_ACEOF -#define HAVE_LGAMMAL 1 -_ACEOF - - fi - - # Check for GFORTRAN_C99_1.1 funcs @@ -26280,41 +25875,6 @@ $as_echo "#define HAVE_ATTRIBUTE_VISIBIL fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 -$as_echo_n "checking whether the target supports dllexport... " >&6; } -if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then : - $as_echo_n "(cached) " >&6 -else - - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -void __attribute__((dllexport)) foo(void) { } -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - libgfor_cv_have_attribute_dllexport=yes -else - libgfor_cv_have_attribute_dllexport=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_CFLAGS" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5 -$as_echo "$libgfor_cv_have_attribute_dllexport" >&6; } - if test $libgfor_cv_have_attribute_dllexport = yes; then - -$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h - - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 $as_echo_n "checking whether the target supports symbol aliases... " >&6; } if test "${libgfor_cv_have_attribute_alias+set}" = set; then : Index: configure.ac =================================================================== --- configure.ac (revision 227316) +++ configure.ac (working copy) @@ -286,7 +286,6 @@ if test "${hardwire_newlib:-0}" -eq 1; t AC_DEFINE(HAVE_MKSTEMP, 1, [Define if you have mkstemp.]) AC_DEFINE(HAVE_STRTOF, 1, [Define if you have strtof.]) AC_DEFINE(HAVE_SNPRINTF, 1, [Define if you have snprintf.]) - AC_DEFINE(HAVE_STRCASESTR, 1, [Define if you have strcasestr.]) AC_DEFINE(HAVE_VSNPRINTF, 1, [Define if you have vsnprintf.]) AC_DEFINE(HAVE_LOCALTIME_R, 1, [Define if you have localtime_r.]) AC_DEFINE(HAVE_GMTIME_R, 1, [Define if you have gmtime_r.]) @@ -302,10 +301,10 @@ if test "${hardwire_newlib:-0}" -eq 1; t else AC_CHECK_FUNCS_ONCE(getrusage times mkstemp strtof strtold snprintf \ ftruncate chsize chdir getlogin gethostname kill link symlink sleep ttyname \ - alarm access fork execl setmode close fcntl \ - strcasestr getrlimit gettimeofday stat fstat lstat getpwuid vsnprintf dup \ + alarm access fork setmode fcntl \ + gettimeofday stat fstat lstat getpwuid vsnprintf dup \ getcwd localtime_r gmtime_r getpwuid_r ttyname_r clock_gettime \ - readlink getgid getpid getppid getuid geteuid umask getegid \ + getgid getpid getuid geteuid umask getegid \ secure_getenv __secure_getenv mkostemp strnlen strndup newlocale \ freelocale uselocale strerror_l) fi @@ -400,7 +399,6 @@ GCC_CHECK_MATH_FUNC([nextafter]) GCC_CHECK_MATH_FUNC([nextafterl]) GCC_CHECK_MATH_FUNC([powf]) GCC_CHECK_MATH_FUNC([pow]) -GCC_CHECK_MATH_FUNC([powl]) GCC_CHECK_MATH_FUNC([cpowf]) GCC_CHECK_MATH_FUNC([cpow]) GCC_CHECK_MATH_FUNC([cpowl]) @@ -451,34 +449,27 @@ GCC_CHECK_MATH_FUNC([trunc]) GCC_CHECK_MATH_FUNC([truncl]) GCC_CHECK_MATH_FUNC([erff]) GCC_CHECK_MATH_FUNC([erf]) -GCC_CHECK_MATH_FUNC([erfl]) GCC_CHECK_MATH_FUNC([erfcf]) GCC_CHECK_MATH_FUNC([erfc]) GCC_CHECK_MATH_FUNC([erfcl]) GCC_CHECK_MATH_FUNC([j0f]) GCC_CHECK_MATH_FUNC([j0]) -GCC_CHECK_MATH_FUNC([j0l]) GCC_CHECK_MATH_FUNC([j1f]) GCC_CHECK_MATH_FUNC([j1]) -GCC_CHECK_MATH_FUNC([j1l]) GCC_CHECK_MATH_FUNC([jnf]) GCC_CHECK_MATH_FUNC([jn]) GCC_CHECK_MATH_FUNC([jnl]) GCC_CHECK_MATH_FUNC([y0f]) GCC_CHECK_MATH_FUNC([y0]) -GCC_CHECK_MATH_FUNC([y0l]) GCC_CHECK_MATH_FUNC([y1f]) GCC_CHECK_MATH_FUNC([y1]) -GCC_CHECK_MATH_FUNC([y1l]) GCC_CHECK_MATH_FUNC([ynf]) GCC_CHECK_MATH_FUNC([yn]) GCC_CHECK_MATH_FUNC([ynl]) GCC_CHECK_MATH_FUNC([tgamma]) GCC_CHECK_MATH_FUNC([tgammaf]) -GCC_CHECK_MATH_FUNC([tgammal]) GCC_CHECK_MATH_FUNC([lgamma]) GCC_CHECK_MATH_FUNC([lgammaf]) -GCC_CHECK_MATH_FUNC([lgammal]) # Check for GFORTRAN_C99_1.1 funcs GCC_CHECK_MATH_FUNC([cacos]) @@ -599,7 +590,6 @@ fi # Check out attribute support. LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY -LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT LIBGFOR_CHECK_ATTRIBUTE_ALIAS # Check out sync builtins support. --Apple-Mail=_41F0D722-CB89-4872-AB43-D0B4E136BF02--