PR tree-optimization/37664
* fold-const.c (fold_binary): When optimizing comparison with
highest or lowest type's value, don't consider TREE_OVERFLOW.
* gcc.c-torture/compile/pr37664.c: New test.
From-SVN: r141171
+2008-10-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/37664
+ * fold-const.c (fold_binary): When optimizing comparison with
+ highest or lowest type's value, don't consider TREE_OVERFLOW.
+
2008-10-16 David Edelsohn <edelsohn@gnu.org>
PR target/35483
unsigned int width = TYPE_PRECISION (arg1_type);
if (TREE_CODE (arg1) == INTEGER_CST
- && !TREE_OVERFLOW (arg1)
&& width <= 2 * HOST_BITS_PER_WIDE_INT
&& (INTEGRAL_TYPE_P (arg1_type) || POINTER_TYPE_P (arg1_type)))
{
+2008-10-16 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/37664
+ * gcc.c-torture/compile/pr37664.c: New test.
+
2008-10-16 Joseph Myers <joseph@codesourcery.com>
PR middle-end/37418
--- /dev/null
+/* PR tree-optimization/37664 */
+
+int v;
+
+int
+foo ()
+{
+ int a = 0x8899A862;
+ int b = 0x8E * a;
+ int c = (b % b);
+ if (v > (4294967295U >> c))
+ return v;
+ return 0;
+}