This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[vta,vta4.3] include line number info in expand dump, if requested
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Sep 2008 04:19:22 -0300
- Subject: [vta,vta4.3] include line number info in expand dump, if requested
I didn't like much that expand dumps omitted line information even if
I explicitly asked for it, so I fixed it, vta and vta4.3,
respectively.
for gcc/ChangeLog.vta
from Alexandre Oliva <aoliva@redhat.com>
* cfgexpand.c (maybe_dump_rtl_for_gimple_stmt): Dump line number
information if requested.
Index: gcc/cfgexpand.c
===================================================================
--- gcc/cfgexpand.c.orig 2008-09-05 03:09:42.000000000 -0300
+++ gcc/cfgexpand.c 2008-09-05 03:11:42.000000000 -0300
@@ -1532,7 +1532,8 @@ maybe_dump_rtl_for_gimple_stmt (gimple s
if (dump_file && (dump_flags & TDF_DETAILS))
{
fprintf (dump_file, "\n;; ");
- print_gimple_stmt (dump_file, stmt, 0, TDF_SLIM);
+ print_gimple_stmt (dump_file, stmt, 0,
+ TDF_SLIM | (dump_flags & TDF_LINENO));
fprintf (dump_file, "\n");
print_rtl (dump_file, since ? NEXT_INSN (since) : since);
for gcc/ChangeLog.vta
from Alexandre Oliva <aoliva@redhat.com>
* cfgexpand.c (maybe_dump_rtl_for_tree_stmt): Dump line number
information if requested.
Index: gcc/cfgexpand.c
===================================================================
--- gcc/cfgexpand.c.orig 2008-08-12 03:45:28.000000000 -0300
+++ gcc/cfgexpand.c 2008-09-05 03:18:46.000000000 -0300
@@ -1232,7 +1232,8 @@ maybe_dump_rtl_for_tree_stmt (tree stmt,
if (dump_file && (dump_flags & TDF_DETAILS))
{
fprintf (dump_file, "\n;; ");
- print_generic_expr (dump_file, stmt, TDF_SLIM);
+ print_generic_expr (dump_file, stmt,
+ TDF_SLIM | (dump_flags & TDF_LINENO));
fprintf (dump_file, "\n");
print_rtl (dump_file, since ? NEXT_INSN (since) : since);
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}
FSFLA Board Member ÂSÃ Libre! => http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}