This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23290] Layout changed for structure with single complex field
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Aug 2005 14:14:37 -0000
- Subject: [Bug middle-end/23290] Layout changed for structure with single complex field
- References: <20050808190558.23290.amylaar@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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