This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFC: Ensure TREE_TYPE (TYPE_MIN_VALUE (t)) == t


Ian Lance Taylor <iant@google.com> writes:

> 	PR middle-end/31710
> 	* tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
> 	TYPE_MAX_VALUE exist, convert them to the new type.

This breaks Ada:

/tmp/cvs/gcc-20070428/Build/./gcc/xgcc -B/tmp/cvs/gcc-20070428/Build/./gcc/ -B/tmp/cvs/gcc-20070428/Build/root/ia64-suse-linux/bin/ -B/tmp/cvs/gcc-20070428/Build/root/ia64-suse-linux/lib/ -isystem /tmp/cvs/gcc-20070428/Build/root/ia64-suse-linux/include -isystem /tmp/cvs/gcc-20070428/Build/root/ia64-suse-linux/sys-include -c -g -O2 -fPIC -DUSE_GAS_SYMVER      -W -Wall -gnatpg  g-regexp.adb -o g-regexp.o
+===========================GNAT BUG DETECTED==============================+
| 4.3.0 20070428 (experimental) (ia64-suse-linux-gnu) GCC error:           |
| in build_int_cst_wide, at tree.c:902                                     |
| Error detected around g-regexp.adb:1350                                  |

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]