Commit 6c7c4708 by Cesar Philippidis Committed by Cesar Philippidis

[nvptx] Add support for CUDA 9

	PR target/83790

	gcc/
	* config/nvptx/nvptx.c (output_init_frag): Don't use generic address
	spaces for function labels.

	gcc/testsuite/
	* gcc.target/nvptx/indirect_call.c: New test.

From-SVN: r256891
parent b8d090db
2018-01-19 Cesar Philippidis <cesar@codesourcery.com>
PR target/83790
* config/nvptx/nvptx.c (output_init_frag): Don't use generic address
spaces for function labels.
2018-01-19 Martin Liska <mliska@suse.cz>
* predict.def (PRED_LOOP_EXIT): Change from 85 to 89.
......
......@@ -1899,9 +1899,15 @@ output_init_frag (rtx sym)
if (sym)
{
fprintf (asm_out_file, "generic(");
bool function = (SYMBOL_REF_DECL (sym)
&& (TREE_CODE (SYMBOL_REF_DECL (sym)) == FUNCTION_DECL));
if (!function)
fprintf (asm_out_file, "generic(");
output_address (VOIDmode, sym);
fprintf (asm_out_file, val ? ") + " : ")");
if (!function)
fprintf (asm_out_file, ")");
if (val)
fprintf (asm_out_file, " + ");
}
if (!sym || val)
......
2018-01-19 Cesar Philippidis <cesar@codesourcery.com>
PR target/83790
* gcc.target/nvptx/indirect_call.c: New test.
2018-01-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* g++.dg/torture/pr83619.C: Remove dg-message.
......
/* { dg-options "-O2 -msoft-stack" } */
/* { dg-do run } */
int
f1 (int a)
{
return a + 1;
}
int (*f2)(int) = f1;
int
main ()
{
if (f2 (100) != 101)
__builtin_abort();
return 0;
}
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