public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Basile Starynkevitch <basile@starynkevitch.net>
To: Diego Novillo <dnovillo@google.com>
Cc: gcc@gcc.gnu.org
Subject: Re: status of GCC & C++
Date: Sun, 25 Mar 2012 18:31:00 -0000	[thread overview]
Message-ID: <20120325203031.4a1a36828c16f7481aa0c567@starynkevitch.net> (raw)
In-Reply-To: <4F6F5E48.90404@google.com>

On Sun, 25 Mar 2012 14:04:56 -0400
Diego Novillo <dnovillo@google.com> wrote:

> On 3/25/12 1:28 PM, Basile Starynkevitch wrote:
> > On Sun, 25 Mar 2012 13:25:34 -0400
[...]

> > I would suggest then to put in a core header file (even used by plugins) something like
> > #ifndef __cpluscplus
> > #error GCC and its plugins need to be compiled by a C++ compiler
> > #endif
> >
> > What do you think? And where should we put that?
> 
> First things first.  Stage 1 should be compiled with C++.  We still need 
> someone to volunteer to do that.

Ok. I thought that step was a trivial one.

Now a related question. How can a plugin know that cc1 was compiled with C++ or just with
plain C? I don't really know (we do have GCCPLUGIN_VERSION, but should a plugin use
ENABLE_BUILD_WITH_CXX)?

And I don't understand why the GCC 4.7 changes don't advertise loudly on
http://gcc.gnu.org/gcc-4.7/changes.html that the C language is obsolete as the language
in which GCC is coded, and that next release will *need* to be compiled with C++? Or is
something that tells it somewhere, in strong enough words or typography that nobody could
skip it? (I am not sure that a casual user, brave enough to compile GCC 4.7 from source,
did notice that C++ would be soon mandatory to compile GCC).

Cheers.
-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***

  parent reply	other threads:[~2012-03-25 18:31 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-25 17:19 Basile Starynkevitch
2012-03-25 17:25 ` Diego Novillo
2012-03-25 17:33   ` Eric Botcazou
2012-03-25 17:44     ` Diego Novillo
2012-03-25 21:37       ` Eric Botcazou
2012-03-25 21:46         ` Diego Novillo
2012-03-25 22:01           ` Gabriel Dos Reis
2012-03-28 19:50           ` Eric Botcazou
     [not found]   ` <20120325192843.05bf843acfb715c4bc9cd4aa@starynkevitch.net>
     [not found]     ` <4F6F5E48.90404@google.com>
2012-03-25 18:31       ` Basile Starynkevitch [this message]
2012-03-25 20:11         ` Basile Starynkevitch
2012-03-25 20:21           ` Gabriel Dos Reis
2012-03-25 20:29           ` Marc Glisse
2012-03-26 15:59           ` Configure-time testing for GCC plugins to determine C vs C++? (Was Re: status of GCC & C++) David Malcolm
2012-03-26 17:07             ` Joseph S. Myers
2012-03-26 18:18               ` David Malcolm
2012-03-26 18:33                 ` Basile Starynkevitch
2012-03-26 20:34                   ` Romain Geissler
2012-03-27  5:53                     ` Basile Starynkevitch
2012-03-27 10:23 ` status of GCC & C++ Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120325203031.4a1a36828c16f7481aa0c567@starynkevitch.net \
    --to=basile@starynkevitch.net \
    --cc=dnovillo@google.com \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).