From 5bb3d1ddedca80d88fd56a6b3c18a987567f6ae1 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 31 Mar 1996 06:18:58 -0500 Subject: [PATCH] (layout_decl): Don't make a bitfield an integral mode if the mode of the field type is not MODE_INT. From-SVN: r11647 --- gcc/stor-layout.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 76691069d13..a67418b35ee 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -1,5 +1,5 @@ /* C-compiler utilities for types and variables storage layout - Copyright (C) 1987, 88, 92, 93, 94, 1995 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -260,7 +260,8 @@ layout_decl (decl, known_align) if (DECL_BIT_FIELD (decl) && TYPE_SIZE (type) != 0 - && TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST) + && TREE_CODE (TYPE_SIZE (type)) == INTEGER_CST + && GET_MODE_CLASS (TYPE_MODE (type)) == MODE_INT) { register enum machine_mode xmode = mode_for_size (TREE_INT_CST_LOW (DECL_SIZE (decl)), MODE_INT, 1); -- 2.30.2