Commits

Iain Buclaw  committed 7631e90

Emit pretty debug tree information on -fdump-tree-original

  • Participants
  • Parent commits e8ae515

Comments (0)

Files changed (2)

File d/d-gcc-includes.h

 extern bool useless_type_conversion_p (tree, tree);
 #endif
 
+#if D_GCC_VER >= 46
+#include "tree-pretty-print.h"
+#endif
 }
 
 // Define our own macro for handling mapped locations as
         fprintf (dump_file, ";; enabled by -%s\n", dump_flag_name (TDI_original));
         fprintf (dump_file, "\n");
 
-        //if (local_dump_flags & TDF_RAW)
+        if (local_dump_flags & TDF_RAW)
         dump_node (DECL_SAVED_TREE (fndecl),
-                TDF_SLIM | local_dump_flags, dump_file);
-        //else
-        //print_c_tree (dump_file, DECL_SAVED_TREE (fndecl));
+                   TDF_SLIM | local_dump_flags, dump_file);
+        else
+            print_generic_expr (dump_file, DECL_SAVED_TREE (fndecl), local_dump_flags);
         fprintf (dump_file, "\n");
 
         dump_end (TDI_original, dump_file);