utils2.c (gnat_invariant_expr): Return null if the type of the expression ends up...
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 16 Mar 2015 09:59:01 +0000 (09:59 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 16 Mar 2015 09:59:01 +0000 (09:59 +0000)
commit61e0b23353f25d12fd1925ccd2aaaf19f56ddbcb
tree7c70e180d4bfd57e81574e83006ce113fff743ba
parent261cb0d3eb5e8160b88d729a2be684110ff48831
utils2.c (gnat_invariant_expr): Return null if the type of the expression ends up being composite.

* gcc-interface/utils2.c (gnat_invariant_expr): Return null if the type
of the expression ends up being composite.

From-SVN: r221449
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/loop_optimization18.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/loop_optimization18.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/loop_optimization18_pkg.ads [new file with mode: 0644]