This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/24880] [4.1/4.2/4.3/4.4 regression] infinite loop on conversion of integer type with size clause
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 May 2008 08:47:06 -0000
- Subject: [Bug ada/24880] [4.1/4.2/4.3/4.4 regression] infinite loop on conversion of integer type with size clause
- References: <bug-24880-10300@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from ebotcazou at gcc dot gnu dot org 2008-05-13 08:47 -------
Subject: Bug 24880
Author: ebotcazou
Date: Tue May 13 08:46:18 2008
New Revision: 135257
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135257
Log:
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.
Added:
trunk/gcc/testsuite/gnat.dg/conv_integer.adb
trunk/gcc/testsuite/gnat.dg/discr7.adb
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/utils.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24880