frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL for too large bitfields.

2003-10-21  Eric Christopher  <echristo@redhat.com>

	* config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
	for too large bitfields.

From-SVN: r72769
This commit is contained in:
Eric Christopher 2003-10-21 20:22:49 +00:00 committed by Eric Christopher
parent c860c22ce8
commit 25f93e1848
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-10-21 Eric Christopher <echristo@redhat.com>
* config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
for too large bitfields.
2003-10-21 Mark Mitchell <mark@codesourcery.com>
* Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.

View File

@ -7799,7 +7799,7 @@ frv_adjust_field_align (field, computed)
/* Make sure that the bitfield is not wider than the type. */
if (DECL_BIT_FIELD (field)
&& tree_int_cst_compare (DECL_SIZE (field), TYPE_SIZE (type)) <= 0)
&& !DECL_ARTIFICIAL (field))
{
tree parent = DECL_CONTEXT (field);
tree prev = NULL_TREE;