Commit 37f30285 by Tom de Vries Committed by Tom de Vries

Add "sorry, target cannot support label values" for nvptx

2017-06-09  Tom de Vries  <tom@codesourcery.com>

	PR target/80855
	* config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
	"target cannot support label values" when encountering LABEL_REF.

	* gcc.target/nvptx/label-values.c: New test.

From-SVN: r249060
parent 051508d7
2017-06-09 Tom de Vries <tom@codesourcery.com>
PR target/80855
* config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
"target cannot support label values" when encountering LABEL_REF.
2017-06-09 Martin Liska <mliska@suse.cz> 2017-06-09 Martin Liska <mliska@suse.cz>
* tree-profile.c (gimple_gen_ic_profiler): Update comment. * tree-profile.c (gimple_gen_ic_profiler): Update comment.
......
...@@ -254,6 +254,9 @@ ...@@ -254,6 +254,9 @@
emit_move_insn (operands[0], tmp); emit_move_insn (operands[0], tmp);
DONE; DONE;
} }
if (GET_CODE (operands[1]) == LABEL_REF)
sorry ("target cannot support label values");
}) })
(define_insn "zero_extendqihi2" (define_insn "zero_extendqihi2"
......
2017-06-09 Tom de Vries <tom@codesourcery.com>
PR target/80855
* gcc.target/nvptx/label-values.c: New test.
2017-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com> 2017-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
* lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok): * lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok):
......
/* { dg-do compile } */
/* { dg-additional-options "-Wno-pedantic" } */
int
main (void)
{
goto L2;
L1:
return 0;
L2:
{
void *ptr = &&L1; /* { dg-message "sorry, unimplemented: target cannot support label values" "" } */
}
}
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