2010-02-04 Richard Guenther <rguenther@suse.de>
PR rtl-optimization/42952
* dse.c (const_or_frame_p): Remove MEM handling.
* gcc.dg/torture/pr42952.c: New testcase.
From-SVN: r156496
+2010-02-04 Richard Guenther <rguenther@suse.de>
+
+ PR rtl-optimization/42952
+ * dse.c (const_or_frame_p): Remove MEM handling.
+
2010-01-31 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/42898
{
switch (GET_CODE (x))
{
- case MEM:
- return MEM_READONLY_P (x);
-
case CONST:
case CONST_INT:
case CONST_DOUBLE:
+2010-02-04 Richard Guenther <rguenther@suse.de>
+
+ PR rtl-optimization/42952
+ * gcc.dg/torture/pr42952.c: New testcase.
+
2010-01-31 Eric Botcazou <ebotcazou@adacore.com>
PR middle-end/42898
--- /dev/null
+/* { dg-do run } */
+/* { dg-options "-fno-tree-ccp -fno-tree-fre" } */
+
+extern void abort (void);
+
+static int g[1];
+
+static int * const p = &g[0];
+static int * const q = &g[0];
+
+int main(void)
+{
+ g[0] = 1;
+ *p = 0;
+ *p = *q;
+ if (g[0] != 0)
+ abort ();
+ return 0;
+}