+2011-05-29 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/49217
+ * ipa-pure-const.c (propagate_pure_const): Fix typos.
+
2011-05-28 Jan Hubicka <jh@suse.cz>
* lto-streamer-out.c (hash_string_slot_node): Hash string based on its
break;
/* Now process the indirect call. */
- for (ie = node->indirect_calls; ie; ie = ie->next_callee)
+ for (ie = w->indirect_calls; ie; ie = ie->next_callee)
{
enum pure_const_state_e edge_state = IPA_CONST;
bool edge_looping = false;
break;
/* And finally all loads and stores. */
- for (i = 0; ipa_ref_list_reference_iterate (&node->ref_list, i, ref); i++)
+ for (i = 0; ipa_ref_list_reference_iterate (&w->ref_list, i, ref); i++)
{
enum pure_const_state_e ref_state = IPA_CONST;
bool ref_looping = false;
+2011-05-29 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/49217
+ * gcc.dg/torture/pr49217.c: New testcase.
+
2011-05-29 Ira Rosen <ira.rosen@linaro.org>
PR testsuite/49222
--- /dev/null
+/* { dg-do run } */
+/* { dg-options "-fno-early-inlining" } */
+
+extern void abort (void);
+int i;
+static void foo(void);
+void __attribute__((noinline))
+bar (void)
+{
+ if (!i)
+ foo ();
+}
+static void
+foo(void)
+{
+ i = 1;
+ bar ();
+}
+int main()
+{
+ i = 0;
+ bar();
+ if (i != 1)
+ abort ();
+ return 0;
+}