[Ada] Fix thinko in Acc_Loop_to_gnu
authorOlivier Hainque <hainque@adacore.com>
Mon, 19 Aug 2019 08:35:24 +0000 (08:35 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 19 Aug 2019 08:35:24 +0000 (08:35 +0000)
commit04d933fd48d7e7cbedb761d660229cac9f36fab2
tree33121678fa1ee560c5164912b09ba5cef04b1dba
parentc9d57552ed85ddfa6b76c755855d112e4cfe277d
[Ada] Fix thinko in Acc_Loop_to_gnu

This fixes a glitch introduced during the initial OpenACC work import
process, causing crashes on any Acc_Parallel + Acc_Loop combination.

2019-08-19  Olivier Hainque  <hainque@adacore.com>

gcc/ada/

* gcc-interface/trans.c (Acc_Loop_to_gnu): Return the openacc
BIND_EXPR node we have constructed on purpose.  Remove unused
variable.

gcc/testsuite/

* gnat.dg/openacc1.adb: New testcase.

From-SVN: r274638
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/openacc1.adb [new file with mode: 0644]