+2010-01-26 Richard Guenther <rguenther@suse.de>
+
+ PR rtl-optimization/42685
+ * web.c (web_main): Ignore DEBUG_INSNs.
+
2010-01-26 Joern Rennecke <amylaar@spamcop.net>
* doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
+2010-01-26 Richard Guenther <rguenther@suse.de>
+
+ PR rtl-optimization/42685
+ * gcc.dg/pr42685.c: New testcase.
+ * g++.dg/other/pr42685.C: Likewise.
+
2010-01-26 Richard Guenther <rguenther@suse.de>
PR middle-end/42806
--- /dev/null
+// { dg-do compile }
+// { dg-options "-O -funroll-loops -fcompare-debug" }
+
+void Remap(int n, int *src, int *dst, int *map)
+{
+ do {
+ int i = *src;
+ if (i != 0) *dst = map[i];
+ } while (--n != 0);
+}
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-O -funroll-loops -fcompare-debug" } */
+
+struct S {
+ int i;
+};
+
+extern void baz(int);
+
+static inline void bar(struct S *s)
+{
+ baz(s->i);
+}
+
+void foo(int *w, int cond, struct S *s)
+{
+ int i, n = 0;
+ while (*w++ != 0) n++;
+ for (i = 0; i < n; i++)
+ if (cond == 0)
+ bar(s + i);
+}
FOR_BB_INSNS (bb, insn)
{
unsigned int uid = INSN_UID (insn);
- if (INSN_P (insn))
+ if (NONDEBUG_INSN_P (insn))
{
df_ref *use_rec;
for (use_rec = DF_INSN_UID_USES (uid); *use_rec; use_rec++)
FOR_BB_INSNS (bb, insn)
{
unsigned int uid = INSN_UID (insn);
- if (INSN_P (insn))
+ if (NONDEBUG_INSN_P (insn))
{
df_ref *use_rec;
for (use_rec = DF_INSN_UID_USES (uid); *use_rec; use_rec++)
FOR_BB_INSNS (bb, insn)
{
unsigned int uid = INSN_UID (insn);
- if (INSN_P (insn))
+ if (NONDEBUG_INSN_P (insn))
{
df_ref *use_rec;
df_ref *def_rec;