[PATCH 16/27] New file: gcc/jit/jit-playback.c
Jeff Law
law@redhat.com
Wed Jan 1 00:00:00 GMT 2014
On 10/31/14 11:02, David Malcolm wrote:
> This files implements the gcc::jit::playback internal API, called by
> the dummy "frontend" to replay the public API calls made to the
> library. A thin wrapper around trees.
>
> gcc/jit/
> * jit-playback.c: New.
> + /* line_table should now be populated; every playback::location should
> + now have an m_srcloc. */
> +
> + if (0)
> + line_table_dump (stderr,
> + line_table,
> + LINEMAPS_ORDINARY_USED (line_table),
> + LINEMAPS_MACRO_USED (line_table));
> +
> + /* Now assign them to tree nodes as appropriate. */
> + std::pair<tree, location *> *cached_location;
> +
> + FOR_EACH_VEC_ELT (m_cached_locations, i, cached_location)
> + {
> + tree t = cached_location->first;
> + source_location srcloc = cached_location->second->m_srcloc;
> +#if 0
> + inform (srcloc, "location of ");
> + debug_tree (t);
> +#endif
Put the if () #if0 under some kind of debugging control or remove them.
Similarly for later instances.
With that change, this is good for the trunk.
jeff
More information about the Jit
mailing list