From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-4.sys.kth.se (smtp-4.sys.kth.se [IPv6:2001:6b0:1:1300:250:56ff:fea6:2de3]) by sourceware.org (Postfix) with ESMTPS id 8A3B43857801; Tue, 14 Sep 2021 23:30:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8A3B43857801 Received: from smtp-4.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-4.sys.kth.se (Postfix) with ESMTP id 3FDFA2848; Wed, 15 Sep 2021 01:30:33 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-4.sys.kth.se ([127.0.0.1]) by smtp-4.sys.kth.se (smtp-4.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id K6bvVGfjhsPy; Wed, 15 Sep 2021 01:30:32 +0200 (CEST) Received: from exdb5.ug.kth.se (exdb5.ug.kth.se [192.168.32.60]) by smtp-4.sys.kth.se (Postfix) with ESMTPS id 977541F3C; Wed, 15 Sep 2021 01:30:32 +0200 (CEST) Received: from exdb6.ug.kth.se (192.168.32.61) by exdb5.ug.kth.se (192.168.32.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15; Wed, 15 Sep 2021 01:30:32 +0200 Received: from exdb6.ug.kth.se ([192.168.32.61]) by exdb6.ug.kth.se ([192.168.32.61]) with mapi id 15.02.0858.015; Wed, 15 Sep 2021 01:30:31 +0200 From: Petter Tomner To: "jit@gcc.gnu.org" , "gcc-patches@gcc.gnu.org" Subject: [PATCH 0/2] jit: Add support for complex types Thread-Topic: [PATCH 0/2] jit: Add support for complex types Thread-Index: AQHXqcBkcwvsaBOiiUudH4cBuyREYg== Date: Tue, 14 Sep 2021 23:30:31 +0000 Message-ID: <38cabc705eaf4fe6b26e312b4c5a2cd9@kth.se> 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=-5.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, 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: Tue, 14 Sep 2021 23:30:39 -0000 Hi! The following two patches adds support for complex types in libgccjit. The complex types already are in the types enum, however they are not usabl= e. In the patch, to use complex types, the user need to call a option function= enabling=20 support. In this way, there will be a linking error if someone tries to use= complex types and a too old libgccjit.so, instead of a cryptic out of range enum error me= ssage at runtime.=20 Since the types already are in the enum, I saw no better way that wouldn't = be confusing.=A0=20 Patch 1 is implementation and patch 2 is docs and testcases.=20 check-jit runs fine on x64 Debian. Regards, Petter =