From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sender4-pp-o91.zoho.com (sender4-pp-o91.zoho.com [136.143.188.91]) by sourceware.org (Postfix) with ESMTPS id 796503840C0F for ; Mon, 29 Jun 2020 01:37:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 796503840C0F ARC-Seal: i=1; a=rsa-sha256; t=1593394662; cv=none; d=zohomail.com; s=zohoarc; b=ZRTdK5XCONkRMlT63IEnBmWR+DD4ruKBf9vLO83pmIvzy77fQxu925Aa1FzEKr0dtBD8D/uIDiSAWL12rvX7JsGYbNNgxfW8MVNZ0Lpl7kNYl/ANtsRONNCTd3thUzPGFI5swxpUtCT5IviNlhOZFBJO3QirCNliHu3JtFZhpNg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593394662; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; bh=D3mX5kXwL8DbuZEzguoL0NG39bW2XehfCfu+iwexCzE=; b=oK3IPiW2yI/1yXEfbaOetqzMutbcWbXxpS4n9Vk0rEmk03Ja8OJtEgo/4hMztRGzuGCyzLpFDaWCnZchWgOtmHysUW/OTRj1wcGc0VHDjTV09WPuidBGbkn2XblcRlS4bF5/zg8zGjFHWAh8wvCxHAsTBayEsNwu6JDVAcO3uts= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=bouanto@zoho.com; dmarc=pass header.from= header.from= Received: from localhost (38.87.1.99 [38.87.1.99]) by mx.zohomail.com with SMTPS id 1593394660671353.0947615803233; Sun, 28 Jun 2020 18:37:40 -0700 (PDT) Date: Sun, 28 Jun 2020 21:37:38 -0400 From: Antoni Boucher To: jit@gcc.gnu.org Subject: Unable to get location after calling gcc_jit_context_dump_to_file Message-ID: <20200629013738.mbqd4o4bkuvmi7dq@bouanto-laptop.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline X-ZohoMailClient: External X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: jit@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Jit mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2020 01:37:46 -0000 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.