On Thu, Oct 01, 2015 at 08:33:07AM -0400, Nathan Sidwell wrote:
> 2015-10-01  Nathan Sidwell  <nat...@codesourcery.com>
> 
>       * builtins.c: Don't include gomp-constants.h.
>       (fold_builtin_1): Don't fold acc_on_device here.
>       * gimple-fold.c: Include gomp-constants.h.
>       (gimple_fold_builtin_acc_on_device): New.
>       (gimple_fold_builtin): Call it.
> 
> Index: gcc/gimple-fold.c
> ===================================================================
> --- gcc/gimple-fold.c (revision 228288)
> +++ gcc/gimple-fold.c (working copy)
> @@ -2848,6 +2890,9 @@ gimple_fold_builtin (gimple_stmt_iterato
>                                          n == 3
>                                          ? gimple_call_arg (stmt, 2)
>                                          : NULL_TREE, fcode);

Missing break statement here.  This is PR67861.

> +    case BUILT_IN_ACC_ON_DEVICE:
> +      return gimple_fold_builtin_acc_on_device (gsi,
> +                                             gimple_call_arg (stmt, 0));
>      default:;
>      }


Segher

Reply via email to