From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2507 invoked by alias); 15 Aug 2005 14:14:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 2391 invoked by uid 48); 15 Aug 2005 14:14:37 -0000 Date: Mon, 15 Aug 2005 14:15:00 -0000 Message-ID: <20050815141437.2390.qmail@sourceware.org> From: "amylaar at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050808190558.23290.amylaar@gcc.gnu.org> References: <20050808190558.23290.amylaar@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug middle-end/23290] Layout changed for structure with single complex field X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg01683.txt.bz2 List-Id: ------- Additional Comments From amylaar at gcc dot gnu dot org 2005-08-15 14:14 ------- (In reply to comment #1) > So, using limit 0 for when calculating the integer mode for the size would fix > the regression on sh? Yes, it would fix the problem with CDImode, however, the mode_for_size_tree call in compute_record_mode is not only used to determine if any mode found from a single member would be suitable, but also the what mode to use otherwise. You don't really want to change what you use for the latter. For vector modes, there is also the added complication that there might be no integer mode at all wide enough to match the size of the vector mode. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23290