re PR middle-end/67619 (ICE at -O1 and above on x86_64-linux-gnu in int_mode_for_mode, at stor-layout.c:425)

PR middle-end/67619
	* lib/target-supports.exp (check_effective_target_builtin_eh_return):
	New procedure.

From-SVN: r227952
This commit is contained in:
Uros Bizjak 2015-09-20 20:07:58 +02:00 committed by Uros Bizjak
parent 56547ff787
commit 7f050a11fc
3 changed files with 13 additions and 0 deletions

View File

@ -121,6 +121,8 @@
PR middle-end/67619
* gcc.dg/torture/pr67619.c: New test.
* lib/target-supports.exp (check_effective_target_builtin_eh_return):
New procedure.
2015-09-18 Alan Lawrence <alan.lawrence@arm.com>

View File

@ -1,4 +1,5 @@
/* { dg-do compile } */
/* { dg-require-effective-target builtin_eh_return } */
void
foo ()

View File

@ -6449,3 +6449,13 @@ proc check_effective_target_comdat_group {} {
int (*fn) () = foo;
}]
}
# Return 1 if target supports __builtin_eh_return
proc check_effective_target_builtin_eh_return { } {
return [check_no_compiler_messages builtin_eh_return object {
void test (long l, void *p)
{
__builtin_eh_return (l, p);
}
} "" ]
}