From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21534 invoked by alias); 28 Nov 2007 00:11:39 -0000 Received: (qmail 21504 invoked by uid 48); 28 Nov 2007 00:11:29 -0000 Date: Wed, 28 Nov 2007 00:11:00 -0000 Message-ID: <20071128001129.21503.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug bootstrap/34205] iwmmxt type/size error In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "raj dot khem at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-11/txt/msg02720.txt.bz2 ------- Comment #8 from raj dot khem at gmail dot com 2007-11-28 00:11 ------- (In reply to comment #7) > s/int//. The enumerated type is implementation defined but shall be capable to > represent the values of all members. Exactly and gcc for arm uses this definition to its advantage so that it can save some size. > > I'd read this as -fshort-enum violating that ":16"? > GCC can smartly chose type based on enum values for size reasons and it will choose the smallest type that can represent the enum. In this testcase enum can be represented by a char. with __extension__ enum tree_code code:16 The testcase is asking for the bit-fields which are not defined for the enum type that gcc has chosen So I think error is ok here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34205