aboutsummaryrefslogtreecommitdiff
path: root/gcc/genoutput.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-10-04 17:10:41 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-10-04 17:10:41 +0000
commit3814e88007d6d9abfbdfd53dbcdc92fe1aed23de (patch)
tree674c22b9fe8aab5e932b8be9edc880125ec3af7d /gcc/genoutput.c
parentf72da967576271070086b2252a8463bb69f93abd (diff)
downloadgcc-3814e88007d6d9abfbdfd53dbcdc92fe1aed23de.zip
gcc-3814e88007d6d9abfbdfd53dbcdc92fe1aed23de.tar.gz
gcc-3814e88007d6d9abfbdfd53dbcdc92fe1aed23de.tar.bz2
read-md.c: track column numbers
gcc/ChangeLog: * genattrtab.c (make_internal_attr): Supply dummy column number to file_location ctor. (main): Likewise. * genoutput.c (init_insn_for_nothing): Likewise. * gensupport.c (add_define_attr): Likewise. * read-md.c (message_at_1): Print column number. (fatal_with_file_and_line): Likewise. (rtx_reader::read_char): Track column numbers. (rtx_reader::unread_char): Likewise. (rtx_reader::rtx_reader): Initialize m_read_md_colno. (rtx_reader::handle_include): Stash and restore m_read_md_colno. (rtx_reader::handle_file): Initialize m_read_md_colno. (rtx_reader::get_current_location): Supply column number to file_location ctor. * read-md.h (struct file_location): Add field "colno". (file_location::file_location): Likewise. (rtx_reader::get_colno): New accessor. (rtx_reader::m_read_md_colno): New field. (rtx_reader::m_last_line_colno): New field. From-SVN: r240752
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r--gcc/genoutput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c
index 5909258..f792cb4 100644
--- a/gcc/genoutput.c
+++ b/gcc/genoutput.c
@@ -980,7 +980,7 @@ init_insn_for_nothing (void)
idata = XCNEW (struct data);
new (idata) data ();
idata->name = "*placeholder_for_nothing";
- idata->loc = file_location ("<internal>", 0);
+ idata->loc = file_location ("<internal>", 0, 0);
idata_end = &idata->next;
}