This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
The nvptx port [6/11+] Pseudo call args
- From: Bernd Schmidt <bernds at codesourcery dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 20 Oct 2014 16:26:45 +0200
- Subject: The nvptx port [6/11+] Pseudo call args
- Authentication-results: sourceware.org; auth=none
- References: <54451994 dot 9070209 at codesourcery dot com>
On ptx, we'll be using pseudos to pass function args as well, and
there's one assert that needs to be toned town to make that work.
Bernd
gcc/
* expr.c (use_reg_mode): Just return for pseudo registers.
------------------------------------------------------------------------
Index: gcc/expr.c
===================================================================
--- gcc/expr.c (revision 422421)
+++ gcc/expr.c (revision 422422)
@@ -2321,7 +2321,10 @@ copy_blkmode_to_reg (enum machine_mode m
void
use_reg_mode (rtx *call_fusage, rtx reg, enum machine_mode mode)
{
- gcc_assert (REG_P (reg) && REGNO (reg) < FIRST_PSEUDO_REGISTER);
+ gcc_assert (REG_P (reg));
+
+ if (!HARD_REGISTER_P (reg))
+ return;
*call_fusage
= gen_rtx_EXPR_LIST (mode, gen_rtx_USE (VOIDmode, reg), *call_fusage);