diff options
author | Andreas Schwab <schwab@suse.de> | 2003-01-24 16:32:16 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2003-01-24 16:32:16 +0000 |
commit | b8089d8d6c77954a47135004d4a0e80f15d681f3 (patch) | |
tree | de73ecdd5e6b769c93cbcc61bdde0d0535c80e78 | |
parent | c13bea50d1ad5ab3408633a9378e4e78af52192d (diff) | |
download | gcc-b8089d8d6c77954a47135004d4a0e80f15d681f3.zip gcc-b8089d8d6c77954a47135004d4a0e80f15d681f3.tar.gz gcc-b8089d8d6c77954a47135004d4a0e80f15d681f3.tar.bz2 |
* stor-layout.c (excess_unit_span): Only define if used.
From-SVN: r61707
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/stor-layout.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index be87199..9215c85 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-01-24 Andreas Schwab <schwab@suse.de> + + * stor-layout.c (excess_unit_span): Only define if used. + 2003-01-24 Jerry Quinn <jlquinn@optonline.net> * gcc/doc/invoke.texi (Optimization Options): List -O levels diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index f3f9b54..5e37593 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1,6 +1,6 @@ /* C-compiler utilities for types and variables storage layout Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1996, 1998, - 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of GCC. @@ -62,9 +62,11 @@ static int reference_types_internal = 0; static void finalize_record_size PARAMS ((record_layout_info)); static void finalize_type_size PARAMS ((tree)); static void place_union_field PARAMS ((record_layout_info, tree)); +#if defined (PCC_BITFIELD_TYPE_MATTERS) || defined (BITFIELD_NBYTES_LIMITED) static int excess_unit_span PARAMS ((HOST_WIDE_INT, HOST_WIDE_INT, HOST_WIDE_INT, HOST_WIDE_INT, tree)); +#endif static unsigned int update_alignment_for_field PARAMS ((record_layout_info, tree, unsigned int)); @@ -791,6 +793,7 @@ place_union_field (rli, field) DECL_SIZE_UNIT (field), rli->offset)); } +#if defined (PCC_BITFIELD_TYPE_MATTERS) || defined (BITFIELD_NBYTES_LIMITED) /* A bitfield of SIZE with a required access alignment of ALIGN is allocated at BYTE_OFFSET / BIT_OFFSET. Return nonzero if the field would span more units of alignment than the underlying TYPE. */ @@ -808,6 +811,7 @@ excess_unit_span (byte_offset, bit_offset, size, align, type) > ((unsigned HOST_WIDE_INT) tree_low_cst (TYPE_SIZE (type), 1) / align)); } +#endif /* RLI contains information about the layout of a RECORD_TYPE. FIELD is a FIELD_DECL to be added after those fields already present in |