On Mon, Mar 26, 2018 at 11:05:52AM +0200, Tom de Vries wrote:
> OK for stage4 or stage1?
Ok for stage4, thanks.
Just a small nit below.
> --- /dev/null
> +++ b/libgomp/testsuite/libgomp.c/switch-conversion-2.c
> @@ -0,0 +1,28 @@
No /* { dg-additional-options "-ftree-switch-conversion" } */
here
Hi,
this patch fixes an ICE that occurs in lto1 after switch conversion
triggers in an offloading function.
Consider this OpenMP test-case:
...
#include
int
main (void)
{
int n[1];
n[0] = 3;
#pragma omp target
{
int m = n[0];
switch (m & 3)
{
case 0: m = 4; break;