https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64213

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
                 CC|                            |hjl.tools at gmail dot com

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Richard Biener from comment #2)

> which means libcpp is miscompiled...?  I notice that stage1 seems to work
> for you?

Yes, it is a miscompilation due to r218161.

Backing out r218161 with following patch allows bootstrap to proceed to stage3:

--cut here--
Index: combine.c
===================================================================
--- combine.c   (revision 218489)
+++ combine.c   (working copy)
@@ -1580,7 +1580,7 @@ setup_incoming_promotions (rtx_insn *first)

       /* The mode and signedness of the argument as it is actually passed,
          see assign_parm_setup_reg in function.c.  */
-      mode3 = promote_function_mode (TREE_TYPE (arg), mode1, &uns1,
+      mode3 = promote_function_mode (DECL_ARG_TYPE (arg), mode2, &uns3,
                                     TREE_TYPE (cfun->decl), 0);

       /* The mode of the register in which the argument is being passed.  */
--cut here--

Reply via email to