diff options
author | Andreas Schwab <schwab@suse.de> | 2003-01-07 15:41:30 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2003-01-07 15:41:30 +0000 |
commit | c93721124b765f21e04fb1d3031510ac86dbd41e (patch) | |
tree | 33ba9ceebea30297ae78a51ad130226e431c6d50 | |
parent | ce985125f5f133f380546787fefacaaa9715114e (diff) | |
download | gcc-c93721124b765f21e04fb1d3031510ac86dbd41e.zip gcc-c93721124b765f21e04fb1d3031510ac86dbd41e.tar.gz gcc-c93721124b765f21e04fb1d3031510ac86dbd41e.tar.bz2 |
class.c (layout_class_type): Don't use PCC_BITFIELD_TYPE_MATTERS if not defined.
* class.c (layout_class_type): Don't use
PCC_BITFIELD_TYPE_MATTERS if not defined.
From-SVN: r60994
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/class.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2ebbbf7..db71bce 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2003-01-07 Andreas Schwab <schwab@suse.de> + + * class.c (layout_class_type): Don't use + PCC_BITFIELD_TYPE_MATTERS if not defined. + 2003-01-06 Mark Mitchell <mark@codesourcery.com> PR c++/9165 diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 9666975..845ca19 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -1,6 +1,6 @@ /* Functions related to building classes and their related objects. Copyright (C) 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) This file is part of GCC. @@ -5053,6 +5053,7 @@ layout_class_type (tree t, tree *virtuals_p) padding = size_binop (MINUS_EXPR, DECL_SIZE (field), TYPE_SIZE (integer_type)); } +#ifdef PCC_BITFIELD_TYPE_MATTERS /* An unnamed bitfield does not normally affect the alignment of the containing class on a target where PCC_BITFIELD_TYPE_MATTERS. But, the C++ ABI does not @@ -5064,6 +5065,7 @@ layout_class_type (tree t, tree *virtuals_p) was_unnamed_p = true; DECL_NAME (field) = make_anon_name (); } +#endif DECL_SIZE (field) = TYPE_SIZE (integer_type); DECL_ALIGN (field) = TYPE_ALIGN (integer_type); DECL_USER_ALIGN (field) = TYPE_USER_ALIGN (integer_type); |