This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/17407] [4.0 Regression] ICE in int_mode_for_mode
- From: "roger at eyesopen dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2004 14:41:42 -0000
- Subject: [Bug middle-end/17407] [4.0 Regression] ICE in int_mode_for_mode
- References: <20040910204302.17407.steven@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From roger at eyesopen dot com 2004-09-18 14:41 -------
Still thinking, shouldn't the TYPE_MODE of an array type usually be BLKmode?
The function build_array_type doesn't appear to initialize the TYPE_MODE field,
so it remains VOIDmode. expand_expr has plenty of code to deal with BLKmode
MEMs, but rarely checks for VOIDmode. Indeed, int_mode_for_mode doesn't ICE
if passed BLKmode instead of VOIDmode.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17407