From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by sourceware.org (Postfix) with ESMTPS id 354EC3858410 for ; Tue, 28 Feb 2023 12:16:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 354EC3858410 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x52e.google.com with SMTP id eg37so38858032edb.12 for ; Tue, 28 Feb 2023 04:16:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5yTmvpbj3hE/V/5VI++qVTZewMvUTIsL2u9767Oo4Dg=; b=JeMC5Z5E27S7rerc1S1xdTmhe7YvcHU6AWICcKnyV4SA+ligvqe5H4qzkC2kRCqeSx 0NWeGSCg6Y4py6NphTnHrqbp2ZtTHdyViViFbC4AVCfL69vKxpWSLT8gPVpp1/ilEB3N ymw9ny7j1PAexIY6WQ9iPNpKTwtIybwWFE6OP8d2VnzaQLBY18oJRUjzOWHi7uU8EcyW SceUsqzmy3uNJT25zl0K2186/mqDiWykeZQaxw9HU9+O/QiGMkQ7lb+Aov3Yk5FkWT2i EIpCnetWm/ACyVPvAyTKB0RqUM4gEsgwSLMZq/aw1Wr5U6bhzNUS5dyjiUfiJtJe/KYP dPXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5yTmvpbj3hE/V/5VI++qVTZewMvUTIsL2u9767Oo4Dg=; b=jLmb2dlQwer4L/PQCPPvd2gJ+cgyYGqxxysdoGOIUrPSIS0K0Ne2q7Z9m4sH3ChjiN Qxzl8fDCFrHO9O4e6opRBUuJxT0AAi8kEI8IbizFND+2GhHcG/aUBO5wUkMYHYdePhJR qWdvMc6hyoY5dqp7jMeo5edsJVzgwvDET+je95ifiKemRx4IpCIbw+x9fqF3MnT7UvHu 8PIsuPCzzpsvZOn7vhIJcA9B39RW8NLxXImLDdAdslDxRL0xU1Icz4y1oljIJgbQDapW 5inzSXpTI65Fd5xrBrcdMONQKOpgu785Bq0fazTpuptppF9fSkhOL9+zPP8vJtPC6h6R tHIA== X-Gm-Message-State: AO0yUKXVivttLmIJZgM4dKiZCW+TLP0e99IxUG/sEi3CQLiR4B/Squvz JwGzcq13XngJqtZo8r0MVD0P5gO3RRIIXM/3Np0= X-Google-Smtp-Source: AK7set8up3r4bTBcioXUyxHYNXbzBntESHXrR4aLDu0v84qcR7wCInbLVS+/WXTxhRyRYQRTkBWG9v+Y691vobA/zgc= X-Received: by 2002:a17:906:4bc4:b0:8b0:fbd5:2145 with SMTP id x4-20020a1709064bc400b008b0fbd52145mr1178898ejv.15.1677586574677; Tue, 28 Feb 2023 04:16:14 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Tue, 28 Feb 2023 12:16:03 +0000 Message-ID: Subject: Re: [GSoC][C++: Implement compiler built-in traits for the standard library traits] To: Berke Yavas Cc: gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 28 Feb 2023 at 10:58, Berke Yavas via Gcc wrote: > > Hi, > > I am Berke. I am interested in the project C++: Implement compiler built-in > traits for the standard library traits for the upcoming GSoC. I am a > Software Engineer with a year of experience. I am very excited to have a > chance to work on gcc. Great, thanks for your interest in the project. > So far, I have built gcc from source, runned tests. Have a few follow up > questions. > > 1. Project is related with C++ frontend and library development, so during > the development there should be no issue configuring with > --disable-bootstrap --disable-multilib --disablelibstdcxx-pch(Thanks to irc > folks who suggested the latter 2, I just wanted to confirm) right? That's fine. > 2. Is there any other built-in compiler traits that are not in the file > `gcc/cp/cp-trait.def`? > 3. __is_same built in is already used in a couple of places in libstdc++. > > File: libstdc++-v3/include/bits/c++config > 840 #if _GLIBCXX_HAS_BUILTIN(__is_same) > 841 # define _GLIBCXX_HAVE_BUILTIN_IS_SAME 1 > 842 #endif > > Is this the file where gcc checks if the compiler built in is available? So > other compiler built-ins should be checked here too? No, that's old code that's done differently for historical reasons. For new built-ins you can just use __has_builtin instead. There are lots of examples of using that in .