diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 73f7c2e1e9588d583c19a45de16c3f4f6a5cdb6f..fca47b920771dcb6fee9b6e9d9990d0aa13ebe0d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
 2009-09-10  Richard Henderson  <rth@redhat.com>
 
+	* tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
+	not TDF_DETAILS.
+
 	* tree-cfg.c (gimple_redirect_edge_and_branch): Do
 	gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
 
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 565330591a4a1d85555d4e7eeeda00e6ff5a00ca..02daee092efdb14f3d5efd0899c5b8eeaf15c699 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -6442,7 +6442,7 @@ dump_function_to_file (tree fn, FILE *file, int flags)
     print_node (file, "", fn, 2);
 
   dsf = DECL_STRUCT_FUNCTION (fn);
-  if (dsf && (flags & TDF_DETAILS))
+  if (dsf && (flags & TDF_EH))
     dump_eh_tree (file, dsf);
 
   if (flags & TDF_RAW && !gimple_has_body_p (fn))