Commit 5d306e55 by Nathan Sidwell Committed by Nathan Sidwell

nvptx.c (nvptx_process_pars): Fix whitespace.

	* config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
	(nvptx_record_offload_symbol): Remove code compensating for lack
	of default dimension handling.
	(nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.

From-SVN: r230571
parent 5f29a394
2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
* config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
(nvptx_record_offload_symbol): Remove code compensating for lack
of default dimension handling.
(nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
* graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
......@@ -3910,31 +3910,17 @@ nvptx_record_offload_symbol (tree decl)
case FUNCTION_DECL:
{
tree attr = get_oacc_fn_attrib (decl);
tree dims = NULL_TREE;
tree dims = TREE_VALUE (attr);
unsigned ix;
if (attr)
dims = TREE_VALUE (attr);
fprintf (asm_out_file, "//:FUNC_MAP \"%s\"",
IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (decl)));
for (ix = 0; ix != GOMP_DIM_MAX; ix++)
{
int size = 1;
/* TODO: This check can go away once the dimension default
machinery is merged to trunk. */
if (dims)
for (ix = 0; ix != GOMP_DIM_MAX; ix++, dims = TREE_CHAIN (dims))
{
tree dim = TREE_VALUE (dims);
if (dim)
size = TREE_INT_CST_LOW (dim);
int size = TREE_INT_CST_LOW (TREE_VALUE (dims));
gcc_assert (!TREE_PURPOSE (dims));
dims = TREE_CHAIN (dims);
}
fprintf (asm_out_file, ", %#x", size);
}
......@@ -4186,8 +4172,7 @@ nvptx_expand_builtin (tree exp, rtx target, rtx ARG_UNUSED (subtarget),
routine might spawn a loop. It is negative for non-routines. */
static bool
nvptx_goacc_validate_dims (tree ARG_UNUSED (decl), int *ARG_UNUSED (dims),
int ARG_UNUSED (fn_level))
nvptx_goacc_validate_dims (tree decl, int dims[], int fn_level)
{
bool changed = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment