mirror of git://gcc.gnu.org/git/gcc.git
stdint.m4: Store temporary file in $tmp/_GCC_STDINT_H.
2009-09-09 Paolo Bonzini <bonzini@gnu.org> * stdint.m4: Store temporary file in $tmp/_GCC_STDINT_H. Eliminate now pointless comments. libdecnumber: 2009-09-09 Paolo Bonzini <bonzini@gnu.org> * configure: Regenerate. libgfortran: 2009-09-09 Paolo Bonzini <bonzini@gnu.org> * configure: Regenerate. From-SVN: r151567
This commit is contained in:
parent
ca1bb752ae
commit
d72a3ac17b
|
|
@ -1,3 +1,7 @@
|
||||||
|
2009-09-09 Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
|
||||||
|
* stdint.m4: Store temporary file in $tmp/_GCC_STDINT_H.
|
||||||
|
|
||||||
2009-09-08 Paolo Bonzini <bonzini@gnu.org>
|
2009-09-08 Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
|
||||||
* stdint.m4: Rewrite by using autoconf 2.64 features.
|
* stdint.m4: Rewrite by using autoconf 2.64 features.
|
||||||
|
|
|
||||||
|
|
@ -22,17 +22,14 @@ AC_CHECK_TYPES([int_least32_t, int_fast32_t],,,[#include <sys/types.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#endif])
|
#endif])
|
||||||
|
|
||||||
# ----------------- Summarize what we found so far
|
|
||||||
|
|
||||||
m4_define([_GCC_STDINT_H], m4_ifval($1, $1, _stdint.h))
|
m4_define([_GCC_STDINT_H], m4_ifval($1, $1, _stdint.h))
|
||||||
m4_if(m4_bmatch(m4_quote(/_GCC_STDINT_H),
|
m4_if(m4_bmatch(m4_quote(/_GCC_STDINT_H),
|
||||||
/stdint\.h$, bad,
|
/stdint\.h$, bad,
|
||||||
/inttypes\.h$, bad, ok), bad,
|
/inttypes\.h$, bad, ok), bad,
|
||||||
[m4_fatal([cannot overwrite ]m4_quote(_GCC_STDINT_H))])
|
[m4_fatal([cannot overwrite ]m4_quote(_GCC_STDINT_H))])
|
||||||
|
|
||||||
# ----------------- done all checks, emit header -------------
|
|
||||||
AC_CONFIG_COMMANDS(_GCC_STDINT_H, [
|
AC_CONFIG_COMMANDS(_GCC_STDINT_H, [
|
||||||
cat >> tmp-stdint.h <<EOF
|
cat > $tmp/_GCC_STDINT_H <<EOF
|
||||||
#ifndef GCC_GENERATED_STDINT_H
|
#ifndef GCC_GENERATED_STDINT_H
|
||||||
#define GCC_GENERATED_STDINT_H 1
|
#define GCC_GENERATED_STDINT_H 1
|
||||||
|
|
||||||
|
|
@ -47,7 +44,7 @@ cat >> tmp-stdint.h <<EOF
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if test "$ac_cv_type_int_least32_t" != yes; then
|
if test "$ac_cv_type_int_least32_t" != yes; then
|
||||||
sed 's/^ *//' >> tmp-stdint.h <<EOF
|
sed 's/^ *//' >> $tmp/_GCC_STDINT_H <<EOF
|
||||||
|
|
||||||
/* Define int_least types */
|
/* Define int_least types */
|
||||||
typedef int8_t int_least8_t;
|
typedef int8_t int_least8_t;
|
||||||
|
|
@ -65,7 +62,7 @@ fi
|
||||||
if test "$ac_cv_type_int_fast32_t" != yes; then
|
if test "$ac_cv_type_int_fast32_t" != yes; then
|
||||||
dnl NOTE: The following code assumes that sizeof (int) > 1.
|
dnl NOTE: The following code assumes that sizeof (int) > 1.
|
||||||
dnl Fix when strange machines are reported.
|
dnl Fix when strange machines are reported.
|
||||||
sed 's/^ *//' >> tmp-stdint.h <<EOF
|
sed 's/^ *//' >> $tmp/_GCC_STDINT_H <<EOF
|
||||||
|
|
||||||
/* Define int_fast types. short is often slow */
|
/* Define int_fast types. short is often slow */
|
||||||
typedef int8_t int_fast8_t;
|
typedef int8_t int_fast8_t;
|
||||||
|
|
@ -80,12 +77,12 @@ if test "$ac_cv_type_int_fast32_t" != yes; then
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo '#endif /* GCC_GENERATED_STDINT_H */' >> tmp-stdint.h
|
echo '@%:@endif /* GCC_GENERATED_STDINT_H */' >> $tmp/_GCC_STDINT_H
|
||||||
|
|
||||||
if test -r ]_GCC_STDINT_H[ && cmp -s tmp-stdint.h ]_GCC_STDINT_H[; then
|
if test -r _GCC_STDINT_H && cmp -s $tmp/_GCC_STDINT_H _GCC_STDINT_H; then
|
||||||
rm -f tmp-stdint.h
|
rm -f $tmp/_GCC_STDINT_H
|
||||||
else
|
else
|
||||||
mv -f tmp-stdint.h ]_GCC_STDINT_H[
|
mv -f $tmp/_GCC_STDINT_H _GCC_STDINT_H
|
||||||
fi
|
fi
|
||||||
|
|
||||||
], [
|
], [
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
2009-09-08 Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||||
|
|
||||||
* configure.ac (AC_PREREQ): Bump to 2.64.
|
* configure.ac (AC_PREREQ): Bump to 2.64.
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -1,3 +1,7 @@
|
||||||
|
2009-09-08 Paolo Bonzini <bonzini@gnu.org>
|
||||||
|
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2009-09-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
2009-09-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
|
||||||
|
|
||||||
PR libgfortran/41192
|
PR libgfortran/41192
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue