From: Antoni Boucher <bouanto@zoho.com>
To: jit@gcc.gnu.org
Subject: Unable to get location after calling gcc_jit_context_dump_to_file
Date: Sun, 28 Jun 2020 21:37:38 -0400 [thread overview]
Message-ID: <20200629013738.mbqd4o4bkuvmi7dq@bouanto-laptop.localdomain> (raw)
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.
reply other threads:[~2020-06-29 1:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200629013738.mbqd4o4bkuvmi7dq@bouanto-laptop.localdomain \
--to=bouanto@zoho.com \
--cc=jit@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).