This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix ICE
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 24 Sep 2003 10:12:17 +0100
- Subject: Fix ICE
- Organization: Codesourcery LLC
I've installed this patch to fix an ICE discovered by 12377. The ICE
is incidental to 12377
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
The voices in my head said this was stupid too
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
* c-common.c (c_common_type_for_mode): Check for VOIDmode.
Index: c-common.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-common.c,v
retrieving revision 1.459
diff -c -3 -p -r1.459 c-common.c
*** c-common.c 23 Sep 2003 06:04:13 -0000 1.459
--- c-common.c 24 Sep 2003 09:10:26 -0000
*************** c_common_type_for_mode (enum machine_mod
*** 1862,1867 ****
--- 1862,1870 ----
if (mode == TYPE_MODE (long_double_type_node))
return long_double_type_node;
+ if (mode == TYPE_MODE (void_type_node))
+ return void_type_node;
+
if (mode == TYPE_MODE (build_pointer_type (char_type_node)))
return unsignedp ? make_unsigned_type (mode) : make_signed_type (mode);