2007-08-28 Jakub Jelinek <jakub@redhat.com>
+ PR middle-end/32370
+ * passes.c (init_optimization_passes): Move pass_df_finish
+ after pass_postreload sublist.
+
PR rtl-optimization/33148
* simplify-rtx.c (simplify_unary_operation_1): Only optimize
(neg (lt X 0)) if X has scalar int mode.
NEXT_PASS (pass_machine_reorg);
NEXT_PASS (pass_cleanup_barriers);
NEXT_PASS (pass_delay_slots);
- NEXT_PASS (pass_df_finish);
NEXT_PASS (pass_split_for_shorten_branches);
NEXT_PASS (pass_convert_to_eh_region_ranges);
NEXT_PASS (pass_shorten_branches);
NEXT_PASS (pass_set_nothrow_function_flags);
NEXT_PASS (pass_final);
}
+ NEXT_PASS (pass_df_finish);
}
NEXT_PASS (pass_clean_state);
*p = NULL;
2007-08-28 Jakub Jelinek <jakub@redhat.com>
+ PR middle-end/32370
+ * gcc.dg/pr32370.c: New test.
+
PR rtl-optimization/33148
* gcc.c-torture/compile/20070827-1.c: New test.
--- /dev/null
+/* PR middle-end/32370 */
+/* { dg-do compile { target i?86-*-* x86_64-*-* ia64-*-* } } */
+/* { dg-options "" { target ia64-*-* } } */
+/* { dg-options "-ffixed-esi" { target i?86-*-* x86_64-*-* } } */
+
+#if defined __i386__ || defined __x86_64__
+# define C "=S"
+#elif defined __ia64__
+# define C "=a"
+#endif
+
+unsigned int
+foo (unsigned long port)
+{
+ unsigned int v;
+ __asm__ __volatile__ ("" : C (v) : "Nd" (port)); /* { dg-error "while reloading\|has impossible" } */
+ return v;
+}
+
+void
+bar (void)
+{
+ foo (0);
+}