[Bug middle-end/35163] [4.1/4.2 Regression] folding comparison loses cast
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Mar 25 10:19:00 GMT 2008
------- Comment #9 from rguenth at gcc dot gnu dot org 2008-03-25 10:18 -------
Subject: Bug 35163
Author: rguenth
Date: Tue Mar 25 10:17:54 2008
New Revision: 133509
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133509
Log:
2008-03-25 Richard Guenther <rguenther@suse.de>
Backport from mainline:
2008-02-12 Richard Guenther <rguenther@suse.de>
PR middle-end/35163
* fold-const.c (fold_widened_comparison): Use get_unwidened in
value-preserving mode. Disallow final truncation.
* gcc.c-torture/execute/pr35163.c: New testcase.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gcc.c-torture/execute/pr35163.c
- copied unchanged from r132269,
trunk/gcc/testsuite/gcc.c-torture/execute/pr35163.c
Modified:
branches/gcc-4_1-branch/gcc/ChangeLog
branches/gcc-4_1-branch/gcc/fold-const.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35163
More information about the Gcc-bugs
mailing list