print-rtl.c (rtx_writer::print_rtx_operand_code_i): Print column information.

* print-rtl.c (rtx_writer::print_rtx_operand_code_i): Print column
	information.

From-SVN: r264944
This commit is contained in:
Eric Botcazou 2018-10-08 22:50:51 +00:00 committed by Eric Botcazou
parent 23d8024177
commit 87bd153645
4 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2018-10-08 Eric Botcazou <ebotcazou@adacore.com>
* print-rtl.c (rtx_writer::print_rtx_operand_code_i): Print column
information.
2018-10-08 Eric Botcazou <ebotcazou@adacore.com> 2018-10-08 Eric Botcazou <ebotcazou@adacore.com>
* cgraphunit.c (cgraph_node::expand_thunk): Do not force DECL_IGNORED_P * cgraphunit.c (cgraph_node::expand_thunk): Do not force DECL_IGNORED_P

View File

@ -398,7 +398,8 @@ rtx_writer::print_rtx_operand_code_i (const_rtx in_rtx, int idx)
if (INSN_HAS_LOCATION (in_insn)) if (INSN_HAS_LOCATION (in_insn))
{ {
expanded_location xloc = insn_location (in_insn); expanded_location xloc = insn_location (in_insn);
fprintf (m_outfile, " \"%s\":%i", xloc.file, xloc.line); fprintf (m_outfile, " \"%s\":%i:%i", xloc.file, xloc.line,
xloc.column);
} }
#endif #endif
} }

View File

@ -1,3 +1,7 @@
2018-10-08 Eric Botcazou <ebotcazou@adacore.com>
* gcc.target/i386/vararg-loc.c: Accept a column number.
2018-10-08 Martin Liska <mliska@suse.cz> 2018-10-08 Martin Liska <mliska@suse.cz>
* gcc.target/i386/i386.exp: Move procedures to * gcc.target/i386/i386.exp: Move procedures to

View File

@ -23,5 +23,5 @@ f (int a, ...) /* 8. */
} }
/* { dg-final { scan-rtl-dump-not "vararg-loc\\.c.:\[6789\] " "final" } } */ /* { dg-final { scan-rtl-dump-not "vararg-loc\\.c.:\[6789\] " "final" } } */
/* { dg-final { scan-rtl-dump "vararg-loc\\.c.:18 " "final" } } */ /* { dg-final { scan-rtl-dump "vararg-loc\\.c.:18:\[0-9\]+ " "final" } } */
/* { dg-final { scan-rtl-dump "vararg-loc\\.c.:20 " "final" } } */ /* { dg-final { scan-rtl-dump "vararg-loc\\.c.:20:\[0-9\]+ " "final" } } */