re PR ada/24880 (infinite loop on conversion of integer type with size clause)
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 13 May 2008 08:46:18 +0000 (08:46 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 13 May 2008 08:46:18 +0000 (08:46 +0000)
commitf80cddcb5d45179f285da0a56a36db694935148d
treed5e33cde32652206851dc8984dcaa621347d97ff
parent8beaca66e37f300d7ca91beae79c0f4eb341f760
re PR ada/24880 (infinite loop on conversion of integer type with size clause)

PR ada/24880
PR ada/26635
* utils.c (convert) <INTEGER_TYPE>: When converting an additive
expression to an integral type with lower precision, use NOP_EXPR
directly in a couple of special cases.

From-SVN: r135257
gcc/ada/ChangeLog
gcc/ada/utils.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/conv_integer.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/discr7.adb [new file with mode: 0644]