From d36ff2b46bf0c44b5f8c60710b196777e8880285 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Thu, 20 Sep 2007 22:43:39 +0000 Subject: acinclude.m4 (LIBGFOR_TARGET_ILP32): Remove test. * acinclude.m4 (LIBGFOR_TARGET_ILP32): Remove test. * configure.ac: Don't call LIBGFOR_TARGET_ILP32. * configure: Regenerate. * config.h.in: Regenerate. From-SVN: r128635 --- libgfortran/ChangeLog | 7 +++++ libgfortran/acinclude.m4 | 20 ------------ libgfortran/config.h.in | 3 -- libgfortran/configure | 80 ------------------------------------------------ libgfortran/configure.ac | 4 --- 5 files changed, 7 insertions(+), 107 deletions(-) (limited to 'libgfortran') diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 58943ae..1addbb7 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,10 @@ +2007-09-21 Francois-Xavier Coudert + + * acinclude.m4 (LIBGFOR_TARGET_ILP32): Remove test. + * configure.ac: Don't call LIBGFOR_TARGET_ILP32. + * configure: Regenerate. + * config.h.in: Regenerate. + 2007-09-15 Francois-Xavier Coudert PR libfortran/21185 diff --git a/libgfortran/acinclude.m4 b/libgfortran/acinclude.m4 index 40ce535..6cc1040 100644 --- a/libgfortran/acinclude.m4 +++ b/libgfortran/acinclude.m4 @@ -27,26 +27,6 @@ AC_DEFUN([AC_LIBTOOL_DLOPEN]) AC_DEFUN([AC_PROG_LD]) ]) -dnl Check whether the target is ILP32. -AC_DEFUN([LIBGFOR_TARGET_ILP32], [ - AC_CACHE_CHECK([whether the target is ILP32], target_ilp32, [ - save_CFLAGS="$CFLAGS" - CFLAGS="-O2" - AC_TRY_LINK(,[ -if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4) - ; -else - undefined_function (); - ], - target_ilp32=yes, - target_ilp32=no) - CFLAGS="$save_CFLAGS"]) - if test $target_ilp32 = yes; then - AC_DEFINE(TARGET_ILP32, 1, - [Define to 1 if the target is ILP32.]) - fi - ]) - dnl Check whether the target supports hidden visibility. AC_DEFUN([LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY], [ AC_CACHE_CHECK([whether the target supports hidden visibility], diff --git a/libgfortran/config.h.in b/libgfortran/config.h.in index f805c43..ffa419c 100644 --- a/libgfortran/config.h.in +++ b/libgfortran/config.h.in @@ -808,9 +808,6 @@ /* Define to 1 if the target supports #pragma weak */ #undef SUPPORTS_WEAK -/* Define to 1 if the target is ILP32. */ -#undef TARGET_ILP32 - /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME diff --git a/libgfortran/configure b/libgfortran/configure index be685a4..21e1e41 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -32250,86 +32250,6 @@ echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} FPU_HOST_HEADER=config/${fpu_host}.h -# Attempt to assert that the target is of common type in case we don't -# have C99 integer types at all. - - echo "$as_me:$LINENO: checking whether the target is ILP32" >&5 -echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6 -if test "${target_ilp32+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - save_CFLAGS="$CFLAGS" - CFLAGS="-O2" - if test x$gcc_no_link = xyes; then - { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 -echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} - { (exit 1); exit 1; }; } -fi -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - -if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4) - ; -else - undefined_function (); - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - target_ilp32=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -target_ilp32=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - CFLAGS="$save_CFLAGS" -fi -echo "$as_me:$LINENO: result: $target_ilp32" >&5 -echo "${ECHO_T}$target_ilp32" >&6 - if test $target_ilp32 = yes; then - -cat >>confdefs.h <<\_ACEOF -#define TARGET_ILP32 1 -_ACEOF - - fi - - # Check out attribute support. echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac index a4588e1..78dce55 100644 --- a/libgfortran/configure.ac +++ b/libgfortran/configure.ac @@ -404,10 +404,6 @@ AC_MSG_NOTICE([FPU dependent file will be ${fpu_host}.h]) FPU_HOST_HEADER=config/${fpu_host}.h AC_SUBST(FPU_HOST_HEADER) -# Attempt to assert that the target is of common type in case we don't -# have C99 integer types at all. -LIBGFOR_TARGET_ILP32 - # Check out attribute support. LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY LIBGFOR_CHECK_ATTRIBUTE_DLLEXPORT -- cgit v1.1