This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gomp] Fix PTX worker spill/fill
- From: Nathan Sidwell <nathan at acm dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: jnorris at codesourcery dot com
- Date: Thu, 16 Jul 2015 12:23:52 -0400
- Subject: [gomp] Fix PTX worker spill/fill
- Authentication-results: sourceware.org; auth=none
I've committed this patch to fix a bug in the worker spill/fill code. We ended
up not incrementing the pointer, resulting in the stack frame being filled with
the same value.
Thanks to Jim for finding the failure.
nathan
2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
* config/nvptx/nvptx.c (nvptx_gen_wcast): Fix typo accessing reg's
mode for pointer increment.
Index: config/nvptx/nvptx.c
===================================================================
--- config/nvptx/nvptx.c (revision 225831)
+++ config/nvptx/nvptx.c (working copy)
@@ -1257,7 +1257,7 @@ nvptx_gen_wcast (rtx reg, propagate_mask
emit_insn (res);
emit_insn (gen_adddi3 (data->ptr, data->ptr,
- GEN_INT (GET_MODE_SIZE (GET_MODE (res)))));
+ GEN_INT (GET_MODE_SIZE (GET_MODE (reg)))));
res = get_insns ();
end_sequence ();
}