fold-const.c (fold): New case.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 7 Apr 2008 09:47:43 +0000 (09:47 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 7 Apr 2008 09:47:43 +0000 (09:47 +0000)
commit39fcde8ff2ba378999f0466b8d65c233042c51b6
tree5f52e504245f353cbf4c7ab73aff6c9c36257959
parent9dd9bf80a87fdd119261f5efb8a9ceceffb12963
fold-const.c (fold): New case.

* fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
reference in constructor with non self-referential type.

ada/
* utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.

From-SVN: r133977
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/utils2.c
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/array4.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/specs/static_initializer2.ads [new file with mode: 0644]