ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.

include/
	* ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.

contrib/
	* paranoia.cc (ENUM_BITFIELD): Remove.

gcc/
	* system.h (ENUM_BITFIELD): Remove.

libcpp/
	* system.h (ENUM_BITFIELD): Remove.

From-SVN: r172933
This commit is contained in:
Jan Kratochvil 2011-04-25 18:05:37 +00:00 committed by Jan Kratochvil
parent 482829acf2
commit e5b0dad8fd
8 changed files with 25 additions and 19 deletions

View File

@ -1,3 +1,7 @@
2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
* paranoia.cc (ENUM_BITFIELD): Remove.
2011-04-08 Joseph Myers <joseph@codesourcery.com>
* gcc_update (gcc/config/arm/arm-tables.opt): New dependencies.

View File

@ -169,7 +169,6 @@ lines
};
#undef DEFTREECODE
#define ENUM_BITFIELD(X) enum X
#define class klass
#include "real.h"

View File

@ -1,3 +1,7 @@
2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
* system.h (ENUM_BITFIELD): Remove.
2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
Eric Botcazou <ebotcazou@adacore.com>

View File

@ -598,15 +598,6 @@ extern int vsnprintf(char *, size_t, const char *, va_list);
#define HOST_BIT_BUCKET "/dev/null"
#endif
/* Be conservative and only use enum bitfields with GCC.
FIXME: provide a complete autoconf test for buggy enum bitfields. */
#if (GCC_VERSION > 2000)
#define ENUM_BITFIELD(TYPE) __extension__ enum TYPE
#else
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *) 0)->MEMBER)
#endif

View File

@ -1,3 +1,7 @@
2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
* ansidecl.h (ENUM_BITFIELD): New, from gcc/system.h.
2011-03-31 Tristan Gingold <gingold@adacore.com>
* dwarf2.h (dwarf_line_number_hp_sfc_ops): New enum.

View File

@ -416,6 +416,15 @@ So instead we use the macro below and test it against specific values. */
#define EXPORTED_CONST const
#endif
/* Be conservative and only use enum bitfields with GCC.
FIXME: provide a complete autoconf test for buggy enum bitfields. */
#if (GCC_VERSION > 2000)
#define ENUM_BITFIELD(TYPE) __extension__ enum TYPE
#else
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
#ifdef __cplusplus
}
#endif

View File

@ -1,3 +1,7 @@
2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
* system.h (ENUM_BITFIELD): Remove.
2011-04-24 Jakub Jelinek <jakub@redhat.com>
PR preprocessor/48740

View File

@ -357,15 +357,6 @@ extern void abort (void);
|| (__STDC_VERSION__ >= 199901L))
#endif
/* Be conservative and only use enum bitfields with GCC.
FIXME: provide a complete autoconf test for buggy enum bitfields. */
#if (GCC_VERSION > 2000)
#define ENUM_BITFIELD(TYPE) __extension__ enum TYPE
#else
#define ENUM_BITFIELD(TYPE) unsigned int
#endif
#ifndef offsetof
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *) 0)->MEMBER)
#endif