delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/13/01:31:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Mon, 13 Oct 2003 01:30:48 -0400
From: Christopher Faylor <cgf-rcm AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: gcc -dM -E -xc /dev/null & g++ -dM -E -xc /dev/null
Message-ID: <20031013053048.GA16401@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <bmdcrc$3r9$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <bmdcrc$3r9$1@sea.gmane.org>
User-Agent: Mutt/1.4.1i

On Mon, Oct 13, 2003 at 07:22:28AM +0200, Alex Vinokur wrote:
>gcc -dM -E -xc /dev/null
>  and
>g++ -dM -E -xc /dev/null
>  produce the same output.
>
>Is this a feature or a bug?

It is not a bug.  Try it on linux.

>How can one know that g++ (not gcc) is invoked?

Isn't the __cplusplus define a feature of c++?  I'm too lazy to check if this
is a g++ extension but I'd be surprised if it was.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019