aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-10 22:53:37 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-10 22:53:37 +0000
commit857788d2f44c6bf61a3ac2032f40182ce9546095 (patch)
tree27ae51eb4db60fd5f9adef907da23ccb5220a2e1
parent5b6507b0981189ee84e17c6e2d9b79ea59c2a5b0 (diff)
* config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
(nvptx_reorg): Adjust comments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227667 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/nvptx/nvptx.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 44e84a4a5f1..3eea5477fbe 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-10 Nathan Sidwell <nathan@acm.org>
+
+ * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
+ (nvptx_reorg): Adjust comments.
+
2015-09-15 John David Anglin <danglin@gcc.gnu.org>
PR bootstrap/67363
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c
index 32c34e5ff0c..1069d0e85c1 100644
--- a/gcc/config/nvptx/nvptx.c
+++ b/gcc/config/nvptx/nvptx.c
@@ -807,6 +807,7 @@ nvptx_expand_call (rtx retval, rtx address)
external_decl = true;
}
}
+
if (cfun->machine->funtype
/* It's possible to construct testcases where we call a variable.
See compile/20020129-1.c. stdarg_p will crash so avoid calling it
@@ -1981,9 +1982,10 @@ nvptx_reorg_subreg (void)
}
/* PTX-specific reorganization
- 1) mark now-unused registers, so function begin doesn't declare
+ - Compute live registers
+ - Mark now-unused registers, so function begin doesn't declare
unused registers.
- 2) replace subregs with suitable sequences.
+ - Replace subregs with suitable sequences.
*/
static void
@@ -1995,6 +1997,7 @@ nvptx_reorg (void)
thread_prologue_and_epilogue_insns ();
+ /* Compute live regs */
df_clear_flags (DF_LR_RUN_DCE);
df_set_flags (DF_NO_INSN_RESCAN | DF_NO_HARD_REGS);
df_analyze ();