From 43e85a8f541dcc299092452d816749cf99e31d60 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 5 Jan 2010 21:10:30 +0000 Subject: [PATCH] merge from gcc --- include/ChangeLog | 5 +++++ include/ansidecl.h | 4 ++-- libdecnumber/ChangeLog | 4 ++++ libdecnumber/configure | 44 ++++++++++++++++++++++++++++++++++++++++++ libiberty/ChangeLog | 6 ++++++ libiberty/configure | 1 + libiberty/configure.ac | 1 + 7 files changed, 63 insertions(+), 2 deletions(-) diff --git a/include/ChangeLog b/include/ChangeLog index cd2b1a7df32..7e242a2dae4 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2010-01-05 Rainer Orth + + PR bootstrap/41771 + * ansidecl.h: Fix inline test for C99 and Sun Studio cc. + 2009-12-29 Joel Brobecker * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNAT_descriptive_type. diff --git a/include/ansidecl.h b/include/ansidecl.h index 86b09447482..8b76647426b 100644 --- a/include/ansidecl.h +++ b/include/ansidecl.h @@ -1,6 +1,6 @@ /* ANSI and traditional C compatability macros Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, - 2002, 2003, 2004, 2005, 2006, 2007, 2009 + 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -178,7 +178,7 @@ So instead we use the macro below and test it against specific values. */ /* inline requires special treatment; it's in C99, and GCC >=2.7 supports it too, but it's not in C89. */ #undef inline -#if __STDC_VERSION__ > 199901L || defined(__cplusplus) +#if __STDC_VERSION__ >= 199901L || defined(__cplusplus) || (defined(__SUNPRO_C) && defined(__C99FEATURES__)) /* it's a keyword */ #else # if GCC_VERSION >= 2007 diff --git a/libdecnumber/ChangeLog b/libdecnumber/ChangeLog index 88df3a4d84b..b218e422918 100644 --- a/libdecnumber/ChangeLog +++ b/libdecnumber/ChangeLog @@ -1,3 +1,7 @@ +2010-01-05 Rainer Orth + + * configure: Regenerate. + 2009-11-28 Jakub Jelinek * decContext.c (decContextTestEndian): Move adj definition into diff --git a/libdecnumber/configure b/libdecnumber/configure index 75a7b90570f..f621fc7ccae 100755 --- a/libdecnumber/configure +++ b/libdecnumber/configure @@ -6162,49 +6162,61 @@ if test "$acx_cv_header_stdint" = stddef.h; then #define _UINT8_T #ifndef __uint8_t_defined #define __uint8_t_defined + #ifndef uint8_t typedef unsigned $acx_cv_type_int8_t uint8_t; #endif #endif + #endif #ifndef _UINT16_T #define _UINT16_T #ifndef __uint16_t_defined #define __uint16_t_defined + #ifndef uint16_t typedef unsigned $acx_cv_type_int16_t uint16_t; #endif #endif + #endif #ifndef _UINT32_T #define _UINT32_T #ifndef __uint32_t_defined #define __uint32_t_defined + #ifndef uint32_t typedef unsigned $acx_cv_type_int32_t uint32_t; #endif #endif + #endif #ifndef _INT8_T #define _INT8_T #ifndef __int8_t_defined #define __int8_t_defined + #ifndef int8_t typedef $acx_cv_type_int8_t int8_t; #endif #endif + #endif #ifndef _INT16_T #define _INT16_T #ifndef __int16_t_defined #define __int16_t_defined + #ifndef int16_t typedef $acx_cv_type_int16_t int16_t; #endif #endif + #endif #ifndef _INT32_T #define _INT32_T #ifndef __int32_t_defined #define __int32_t_defined + #ifndef int32_t typedef $acx_cv_type_int32_t int32_t; #endif #endif + #endif EOF elif test "$ac_cv_type_u_int32_t" = yes; then sed 's/^ *//' >> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h <> tmp-stdint.h < + + PR target/42316 + * configure.ac (PICFLAG): Use -fPIC on SH hosts. + * configure: Regenerate. + 2009-12-07 Doug Evans * pex-unix.c (pex_unix_exec_child): Save/restore environ. diff --git a/libiberty/configure b/libiberty/configure index 6a3f6028d20..77aeb56c707 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -4860,6 +4860,7 @@ if [ "${shared}" = "yes" ]; then * ) PICFLAG=-fPIC ;; esac ;; s390*-*-*) PICFLAG=-fpic ;; + sh*-*-*) PICFLAG=-fPIC ;; esac fi diff --git a/libiberty/configure.ac b/libiberty/configure.ac index 6da7ea0869f..515bb338441 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -217,6 +217,7 @@ if [[ "${shared}" = "yes" ]]; then * ) PICFLAG=-fPIC ;; esac ;; s390*-*-*) PICFLAG=-fpic ;; + sh*-*-*) PICFLAG=-fPIC ;; esac fi AC_SUBST(PICFLAG) -- 2.30.2