decl.c (gnat_to_gnu_entity): Remove superfluous computation for the max size.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 27 Oct 2014 10:56:04 +0000 (10:56 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 27 Oct 2014 10:56:04 +0000 (10:56 +0000)
commit33ccc5363ec5994c39048b1aa18e6ae6e35aa2a9
tree89f9bc56de9dc2fbc474b2c63f3ed7f470ca3868
parent0a2e22ec88620328fe7511e75536b942cf672a7a
decl.c (gnat_to_gnu_entity): Remove superfluous computation for the max size.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Remove
superfluous computation for the max size.
<E_Array_Subtype>: Likewise.  Make sure that the max size calculation
does not overflow at compile time.

From-SVN: r216725
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/entry_queues2.adb [new file with mode: 0644]