Olga
Index: fold-const.c
===================================================================
--- fold-const.c (revision 124098)
+++ fold-const.c (working copy)
@@ -13216,6 +13216,7 @@
case INTEGER_CST:
if (TREE_CODE (bottom) != INTEGER_CST
+ || integer_rezop (bottom)
|| (TYPE_UNSIGNED (type)
&& (tree_int_cst_sgn (top) < 0
|| tree_int_cst_sgn (bottom) < 0)))
Index: ChangeLog
===================================================================
--- ChangeLog (revision 124098)
+++ ChangeLog (working copy)
@@ -1,3 +1,9 @@
+2007-04-24 Richard Guenther <rguenther@suse.de>
+ Olga Golovanevsky <olga@il.ibm.com>
+
+ * fold-const.c (multiple_of_p): Check for bottom
+ to be zero.
+
2007-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
* config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
Index: testsuite/ChangeLog
===================================================================
--- testsuite/ChangeLog (revision 124098)
+++ testsuite/ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2007-04-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
+ Olga Golovanevsky <olga@il.ibm.com>
+
+ * g++.dg/other/str_empty.C: New test.
+
2007-04-24 Richard Sandiford <richard@nildram.co.uk>
* gcc.target/mips/madd-1.c, gcc.target/mips/madd-2.c,
Testcase:
// PR c++/31617
// Segfault in integer_rezop
// Origin: Andrew Pinski <andrew_pinski@playstation.sony.com>
// { dg-do compile }
// { dg-options "-O2" }
struct polynomial {
~polynomial ();
};
void spline_rep1 ()
{
new polynomial[0];
}