This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/31095] [4.3 Regression] ICE in expand_expr_real_1, at expr.c:8786



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]