From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by sourceware.org (Postfix) with ESMTPS id 29D1C3858D39 for ; Thu, 3 Mar 2022 09:04:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 29D1C3858D39 Received: by mail-oi1-x22a.google.com with SMTP id ay7so4184606oib.8 for ; Thu, 03 Mar 2022 01:04:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eH3/i5FBv3qetC+x72nHYp2lGsvv+yogIJ5+5YmKGfM=; b=F5s5Rwx5fqAkBfmJVA0nIcjYGeDITfI/AW1eGelUgWIGoW53ZRRigQuAfcspiaizjn yfkdsRmFffJV/dyECmsNFqqHkSUdJFEUoMdHPcFREsL+kHyX6V7Q88Z0SFv0Qf1IVvt2 i+chWDbolkTaOvQ3Ou0OpjuTXlLZ0Vkq7rnHo3a4rkdVf8tXXRx/Ut4zKgKYOhWy32dI 8ZxxshUWBygRJ2KPhTrf6sw6BVlpDdDmWRt0oxVfeH5lQU7AgoLJJtD27GuOvoiKRnjV LIMlGT8QylPmP4YMMB+mDiLl65awAN7CT5NFztqVQNuOinkYLVc3RR5pD9pbJDvxcMja gyuQ== X-Gm-Message-State: AOAM530xuX921L5w5a3B5cujYiOBND24BZekpyZXtBxDSxbJgsEenKPV z23cANxL4hwn88ZktGBuF03hR7yzcYizZ8bFnKM= X-Google-Smtp-Source: ABdhPJxo5ze3DPHIo0MkRKJrO2BGintIHVSBAlSTyw1E7tqxWaVLfy8/hzRVbzhViGU61vf9vzEOR/ipDcbrnRScgtc= X-Received: by 2002:a05:6808:118d:b0:2d4:be7e:6748 with SMTP id j13-20020a056808118d00b002d4be7e6748mr3593070oil.123.1646298262512; Thu, 03 Mar 2022 01:04:22 -0800 (PST) MIME-Version: 1.0 References: <649f3dd2-54f0-2258-61e5-1304a1140bbe@gmail.com> In-Reply-To: From: Abdullah Siddiqui Date: Thu, 3 Mar 2022 04:04:11 -0500 Message-ID: Subject: Re: C++ version for GCC development To: Jonathan Wakely Cc: Gabriel Ravier , gcc-help X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2022 09:04:25 -0000 Hello. Hello. > > This question is for the developers of GCC: > > Which C++ version are you using to write the C++ code of the current GCC > version? > > C++11 I know Jonathan said earlier that GCC is implemented in C++11. However, thi= s page states the following: As of version 4.8, GCC is (mostly) implemented in C++, C++98 specifically. The current version is GCC 11.2, isn't it? At what point did the GCC developers give up C++98 and start using C++11? Is it correct to say that the C++ code of GCC is composed of both C++98 and C++11? Additionally, Jonathan also stated the following in one of his emails in this thread: It also looks like they haven't updated those numbers since April last > year, *so it will wrongly count all .c files as C even the ones which > contain C++ instead*. A huge number of files were renamed from .c to .cc > recently, because they contain C++ and so had a misleading .c extension. > That doesn't seem to be accounted for in those numbers. The page linked above also has a similar claim: As of version 4.8, GCC is (mostly) implemented in C++, but we haven=E2=80= =99t > renamed the source files. Hence you will see source files with a .c > extension throughout the source tree. *These are generally handled by the > build system as C++, rather than C*. Does this mean that ALL the files with the ".c" extension in the GCC codebase are C++ files? How shall I determine which files are C++ files and which ones are in C? Regards, Abdullah. On Tue, Feb 8, 2022 at 10:40 PM Abdullah Siddiqui < siddiquiabdullah92@gmail.com> wrote: > Thank you. > > On Tue, Feb 8, 2022, 12:07 PM Jonathan Wakely, > wrote: > >> >> >> On Tue, 8 Feb 2022 at 17:04, Abdullah Siddiqui < >> siddiquiabdullah92@gmail.com> wrote: >> >>> Jonathan, >>> >>> Oh ok. I already checked out GCC from your second link >>> https://gcc.gnu.org/git.html. I just wanted to know if I could access >>> the code from the browser itself (like on GitHub). >>> >> >> Like it says at that link, you can browse it at >> https://gcc.gnu.org/git/gitweb.cgi?p=3Dgcc.git >> >>