This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/31095] [4.3 Regression] ICE in expand_expr_real_1, at expr.c:8786
- 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: 22 May 2007 21:49:05 -0000
- Subject: [Bug middle-end/31095] [4.3 Regression] ICE in expand_expr_real_1, at expr.c:8786
- References: <bug-31095-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from pinskia at gcc dot gnu dot org 2007-05-22 22:48 -------
Index: builtins.c
===================================================================
Here is the patch which fixes the problem:
--- builtins.c (revision 124965)
+++ builtins.c (working copy)
@@ -3485,6 +3485,7 @@ expand_builtin_memmove_args (tree dest,
if (result)
{
+ STRIP_TYPE_NOPS (result);
while (TREE_CODE (result) == COMPOUND_EXPR)
{
expand_expr (TREE_OPERAND (result, 0), const0_rtx, VOIDmode,
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31095