This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/8835] [mcore-elf] bootstrap ICE at expr.c:2771
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Oct 2004 20:57:56 -0000
- Subject: [Bug target/8835] [mcore-elf] bootstrap ICE at expr.c:2771
- References: <20021205151603.8835.joel@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-01 20:57 -------
This patch fixes the ICE for me, can you try to see if fixes for you and then submit it:
Index: config/mcore/mcore.c
===============================================================
====
RCS file: /cvs/gcc/gcc/gcc/config/mcore/mcore.c,v
retrieving revision 1.74
diff -u -p -r1.74 mcore.c
--- config/mcore/mcore.c 18 Sep 2004 19:19:36 -0000 1.74
+++ config/mcore/mcore.c 1 Oct 2004 20:57:14 -0000
@@ -3064,7 +3064,7 @@ mcore_function_value (tree valtype, tree
mode = TYPE_MODE (valtype);
- PROMOTE_MODE (mode, unsigned_p, NULL);
+ promote_mode (valtype, mode, &unsigned_p, 0);
return handle_structs_in_regs (mode, valtype, FIRST_RET_REG);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8835