From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-relay-3.sys.kth.se (smtp-relay-3.sys.kth.se [IPv6:2001:6b0:1:1200:250:56ff:fead:700c]) by sourceware.org (Postfix) with ESMTPS id 525303858C3A for ; Sat, 27 Nov 2021 16:09:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 525303858C3A Received: from exdb1.ug.kth.se (exdb1.ug.kth.se [192.168.32.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-relay-3.sys.kth.se (Postfix) with ESMTPS id 4J1c5D2xR0zPNQZ; Sat, 27 Nov 2021 17:09:51 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp-relay-3.sys.kth.se 4J1c5D2xR0zPNQZ Received: from exdb6.ug.kth.se (192.168.32.61) by exdb1.ug.kth.se (192.168.32.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Sat, 27 Nov 2021 17:09:51 +0100 Received: from exdb6.ug.kth.se ([192.168.32.61]) by exdb6.ug.kth.se ([192.168.32.61]) with mapi id 15.02.0986.014; Sat, 27 Nov 2021 17:09:51 +0100 From: Petter Tomner To: Gerald Pfeifer , David Malcolm , Antoni Boucher , Antoni Boucher via Jit , Antoni Boucher via Jit Subject: SV: [PATCH] libgccjit: add some reflection functions in the jit C api Thread-Topic: [PATCH] libgccjit: add some reflection functions in the jit C api Thread-Index: AQHXtANA+ozkEGYut0+LrIiYoWkpY6wL2VYAgAqNsQCAAYGYMg== Date: Sat, 27 Nov 2021 16:09:51 +0000 Message-ID: <91ecd9dd299e4d61903b2995d8c64a09@kth.se> References: <20200902010120.crnx55ev635ceiey@bouanto-desktop.localdomain> <54ba5c58dbd2b8c7b1f3276c2b87cddf55e258bd.camel@redhat.com> <20201103221324.xw3jbvrw2uwdc4rz@bouanto-desktop.localdomain> <3388bb8c84e68cd7b0698dc154e7a5666c0d2cde.camel@redhat.com> <0e8b6450bcb23182b85342d8010c3bea0c297ba2.camel@zoho.com> <534254132a841b75d555a52ce952f84418f168c2.camel@redhat.com> <3c328b40570b10b22a8925fd64b2781dc9264358.camel@zoho.com> <715f6ebfe1627fc39d8ec3b15f1e38f8378f3db7.camel@redhat.com> <711092bc80237e32caa48f2060c93be30cb9c220.camel@zoho.com> , <321ec15e-2175-a6fe-5a37-8cef132c4143@pfeifer.com> In-Reply-To: <321ec15e-2175-a6fe-5a37-8cef132c4143@pfeifer.com> Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.32.250] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Sat, 27 Nov 2021 16:09:55 -0000 > My regular testers are x86-64 and do not show this, but if I'm right it s= hould also should on 32-bit GNU/Linux? Ye it is supposed to compile cleanly for 32bit too.=20 I pushed a patch for it as a "free for all". With %zu specifiers. I hope @d= malcolm is OK with it? Regards, Fr=E5n: Gcc-patches f=F6r= Gerald Pfeifer Skickat: den 26 november 2021 19:03 Till: David Malcolm; Antoni Boucher; Antoni Boucher via Jit Kopia: gcc-patches@gcc.gnu.org =C4mne: Re: [PATCH] libgccjit: add some reflection functions in the jit C a= pi =A0 =20 On Fri, 19 Nov 2021, David Malcolm via Gcc-patches wrote: > On Mon, 2021-09-27 at 20:53 -0400, Antoni Boucher wrote: >> I fixed an issue (it would show an error message when >> gcc_jit_type_dyncast_function_ptr_type was called on a type different >> than a function pointer type). > The updated patch is good for trunk, assuming you re-ran the regression=20 > tests successfully. I have received a report of GCC builds now failing on FreeBSD/i386: In function 'gcc_jit_type* gcc_jit_function_type_get_param_type(gcc_jit_function_type*, size_t)': /wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20211121/gcc/jit/libgccjit.= c: 184:35: error: format '%ld' expects argument of type 'long int', but argume= nt 5 has type 'size_t' {aka 'unsigned int'} [-Werror=3Dformat=3D] =A0 184 |=A0=A0=A0=A0=A0=A0=A0=A0 jit_error ((CTXT), (LOC), "%s: " ERR_FMT,= \ =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ^ =A0 185 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 __func__= , (A0), (A1), (A2));=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 \ =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ~~~~=A0=20 /wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20211121/gcc/jit/libgccjit.= c: 230:3: note: in expansion of macro 'RETURN_VAL_IF_FAIL_PRINTF3' =A0 230 |=A0=A0 RETURN_VAL_IF_FAIL_PRINTF3 (TEST_EXPR, NULL, CTXT, LOC, ERR= _FMT, A0, A1, A2) =A0=A0=A0=A0=A0 |=A0=A0 ^~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20211121/gcc/jit/libgccjit.= c: 708:3: note: in expansion of macro 'RETURN_NULL_IF_FAIL_PRINTF3' =A0 708 |=A0=A0 RETURN_NULL_IF_FAIL_PRINTF3 (index < num_params, =A0=A0=A0=A0=A0 |=A0=A0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20211121/gcc/jit/libgccjit.= c: 710:44: note: format string is defined here =A0 710 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0 "index of %ld is too large (%s has %ld params)"= , =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ~~^ =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 | =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 lo= ng int=20 =A0=A0=A0=A0=A0 |=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 %d /wrkdirs/usr/ports/lang/gcc12-devel/work/gcc-12-20211121/gcc/jit/libgccjit.= c: 184:35: error: format '%ld' expects argument of type 'long int', but argume= nt 7 has type 'size_t' {aka 'unsigned int'} [-Werror=3Dformat=3D] My regular testers are x86-64 and do not show this, but if I'm right it should also should on 32-bit GNU/Linux? Gerald =