Unable to get location after calling gcc_jit_context_dump_to_file
Antoni Boucher
bouanto@zoho.com
Mon Jun 29 01:37:38 GMT 2020
Hi.
I'm trying to create a smaller reproducer for the bug 95498:
https://gcc.gnu.org/bugzilla//show_bug.cgi?id=95498
As I explained in the last comment, I added the call to
gcc_jit_context_dump_to_file (ctxt, "/tmp/something.c", 1 /*
update_locations */); right after create_code(ctxt) but the parameter
loc is NULL when I reach add_error in gdb so that I cannot print the
line number.
Is there anything else to change in the reproducer so that it updates
the locations accordingly?
Thanks for your help.
More information about the Jit
mailing list