From 805e22b2051e9c6a75377ea6599654d7415da483 Mon Sep 17 00:00:00 2001 From: zack Date: Mon, 16 Dec 2002 18:23:00 +0000 Subject: Merge basic-improvements-branch to trunk git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60174 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/aclocal.m4 | 78 +++------------------------------------------------------- 1 file changed, 4 insertions(+), 74 deletions(-) (limited to 'gcc/aclocal.m4') diff --git a/gcc/aclocal.m4 b/gcc/aclocal.m4 index 0cec464e2aa..0a954d81169 100644 --- a/gcc/aclocal.m4 +++ b/gcc/aclocal.m4 @@ -1,3 +1,5 @@ +sinclude(../config/accross.m4) + dnl See if stdbool.h properly defines bool and true/false. AC_DEFUN(gcc_AC_HEADER_STDBOOL, [AC_CACHE_CHECK([for working stdbool.h], @@ -799,35 +801,6 @@ if test $gcc_cv_enum_bf_unsigned = yes; then [Define if enumerated bitfields are treated as unsigned values.]) fi]) -dnl Host type sizes probe. -dnl By Kaveh R. Ghazi. One typo fixed since. -dnl -AC_DEFUN([gcc_AC_COMPILE_CHECK_SIZEOF], -[changequote(<<, >>)dnl -dnl The name to #define. -define(<>, translit(sizeof_$1, [a-z *], [A-Z_P]))dnl -dnl The cache variable name. -define(<>, translit(ac_cv_sizeof_$1, [ *], [_p]))dnl -changequote([, ])dnl -AC_MSG_CHECKING(size of $1) -AC_CACHE_VAL(AC_CV_NAME, -[for ac_size in 4 8 1 2 16 $3 ; do # List sizes in rough order of prevalence. - AC_TRY_COMPILE([#include "confdefs.h" -#include -$2 -], [switch (0) case 0: case (sizeof ($1) == $ac_size):;], AC_CV_NAME=$ac_size) - if test x$AC_CV_NAME != x ; then break; fi -done -]) -if test x$AC_CV_NAME = x ; then - AC_MSG_ERROR([cannot determine a size for $1]) -fi -AC_MSG_RESULT($AC_CV_NAME) -AC_DEFINE_UNQUOTED(AC_TYPE_NAME, $AC_CV_NAME, [The number of bytes in type $1]) -undefine([AC_TYPE_NAME])dnl -undefine([AC_CV_NAME])dnl -]) - dnl Probe number of bits in a byte. dnl Note C89 requires CHAR_BIT >= 8. dnl @@ -958,49 +931,6 @@ fi rm -rf conftest* AC_LANG_RESTORE]) -dnl Host endianness probe. -dnl This tests byte-within-word endianness. GCC actually needs -dnl to know word-within-larger-object endianness. They are the -dnl same on all presently supported hosts. -dnl Differs from AC_C_BIGENDIAN in that it does not require -dnl running a program on the host, and it defines the macro we -dnl want to see. -dnl -AC_DEFUN([gcc_AC_C_COMPILE_ENDIAN], -[AC_CACHE_CHECK(byte ordering, ac_cv_c_compile_endian, -[ac_cv_c_compile_endian=unknown -gcc_AC_EXAMINE_OBJECT([ -#ifdef HAVE_LIMITS_H -# include -#endif -/* This structure must have no internal padding. */ - struct { - char prefix[sizeof "\nendian:" - 1]; - short word; - char postfix[2]; - } tester = { - "\nendian:", -#if SIZEOF_SHORT == 4 - ('A' << (CHAR_BIT * 3)) | ('B' << (CHAR_BIT * 2)) | -#endif - ('A' << CHAR_BIT) | 'B', - 'X', '\n' -};], - [if grep 'endian:AB' conftest.dmp >/dev/null 2>&1; then - ac_cv_c_compile_endian=big-endian - elif grep 'endian:BA' conftest.dmp >/dev/null 2>&1; then - ac_cv_c_compile_endian=little-endian - fi]) -]) -if test $ac_cv_c_compile_endian = unknown; then - AC_MSG_ERROR([*** unable to determine endianness]) -elif test $ac_cv_c_compile_endian = big-endian; then - AC_DEFINE(HOST_WORDS_BIG_ENDIAN, 1, - [Define if the host machine stores words of multi-word integers in - big-endian order.]) -fi -]) - dnl Floating point format probe. dnl The basic concept is the same as the above: grep the object dnl file for an interesting string. We have to watch out for @@ -1063,12 +993,12 @@ format= fbigend= case $ac_cv_c_float_format in 'IEEE (big-endian)' ) - if test $ac_cv_c_compile_endian = little-endian; then + if test $ac_cv_c_bigendian = no; then fbigend=1 fi ;; 'IEEE (little-endian)' ) - if test $ac_cv_c_compile_endian = big-endian; then + if test $ac_cv_c_bigendian = yes; then fbigend=0 fi ;; -- cgit v1.2.1