* gcc-interface/misc.c (gnat_type_max_size): Try to return a meaningful
commit17b7eb98bcc88b1d3890821a4238e4e93df47ee6
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Feb 2017 10:00:04 +0000 (24 10:00 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Feb 2017 10:00:04 +0000 (24 10:00 +0000)
treee5293e4d0a31ed5753df85e0cae454a18c38ed30
parente108ae93dbf8001879dee34e446f6ad7760dd859
* gcc-interface/misc.c (gnat_type_max_size): Try to return a meaningful
value for array types with TYPE_INDEX_TYPE set on their domain type.
* gcc-interface/utils.c (max_size): For operations and expressions, do
not build a new node if the operands have not changed or are missing.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245698 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/gcc-interface/misc.c
gcc/ada/gcc-interface/utils.c