From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27836 invoked by alias); 17 Sep 2017 10:05:56 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 27825 invoked by uid 89); 17 Sep 2017 10:05:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*F:D*nz, H*Ad:U*jit, water, H*RU:esmtpa X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: smtp-2.orcon.net.nz Received: from smtp-2.orcon.net.nz (HELO smtp-2.orcon.net.nz) (60.234.4.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 17 Sep 2017 10:05:53 +0000 Received: from [121.99.228.40] (port=42834 helo=tower) by smtp-2.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1dtWSK-000487-Dz; Sun, 17 Sep 2017 22:05:46 +1200 Date: Sun, 01 Jan 2017 00:00:00 -0000 From: Michael Cree To: David Malcolm Cc: jit@gcc.gnu.org Subject: Re: [committed] Fix crash accessing builtins in sanitizer.def and after (PR jit/82174) Message-ID: <20170917100539.4d4rn3fdsk6uk4xh@tower> References: <1505419774-35690-1-git-send-email-dmalcolm@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1505419774-35690-1-git-send-email-dmalcolm@redhat.com> User-Agent: NeoMutt/20170113 (1.7.2) X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-IsSubscribed: yes X-SW-Source: 2017-q3/txt/msg00016.txt.bz2 On Thu, Sep 14, 2017 at 04:09:34PM -0400, David Malcolm wrote: > Calls to gcc_jit_context_get_builtin_function that accessed builtins > in sanitizer.def and after (or failed to match any builtin) led to > a crash accessing a NULL builtin name. [snip] > This patch updates jit-builtins.c to cope with such entries, fixing the > crash. Thanks for fixing that. I would now like to get access to the architecture specific builtins. Any possibility of that being implemented into libgccjit? My project is basically dead in the water without them. Secondly, I am trying to work out how to initialise a vector rvalue with specified values. Something in the vein of gcc_jit_new_rvalue_from_int() but creating a type with vector attribute and where each individual element is set to some specified value and it may not be the same value for each element. The gcc C manual says "vectors can be subscripted as if the vector were an array [...]" so I tried initialising a vector with gcc_jit_context_new_array_access() but that fails with errors that the vector is not a pointer or array at the time of JIT compilation. Cheers Michael.