public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Zack Weinberg <zack@codesourcery.com>
To: Stan Shebs <shebs@apple.com>
Cc: Dale Johannesen <dalej@apple.com>,
	Zack Weinberg <zack@codesourcery.com>,
	David Edelsohn <dje@watson.ibm.com>,
	gcc-patches@gcc.gnu.org
Subject: Re: RS6000 buried treasure - NO_IMPLICIT_EXTERN_C
Date: Fri, 08 Nov 2002 13:48:00 -0000	[thread overview]
Message-ID: <20021108214824.GE1194@egil.codesourcery.com> (raw)
In-Reply-To: <3DCC28E5.9060402@apple.com>

On Fri, Nov 08, 2002 at 01:13:09PM -0800, Stan Shebs wrote:
> >>
> >>Defining or not defining NO_IMPLICIT_EXTERN_C addresses only one C++
> >>issue with system headers.  It should be defined by all targets where
> >>the system headers already wrap declarations in extern "C" { ... }
> >>when appropriate, and not defined otherwise.  Is it really the case
> >>that no AIX release provides extern "C" markers?
> >
> >
> >Darwin headers seem to provide extern "C", at least in the examples I
> >tried, although I'm not sure I understand what "when appropriate"
> >is exactly.  However, darwin.h doesn't currently define 
> >NO_IMPLICIT_EXTERN_C,
> >and I'm not aware of any problems with the way things work now
> >(it's possible the same altivec.h problem exists, though), so I'd
> >request that somebody at least try it on Darwin before changing it.
> >
> Alas, many of the Mach headers are unprotected, even in 6.2, although
> I believe that will be fixed in a future release.  So if it got defined in
> rs6000.h, we'd have to undef in darwin.h.

Okay, with you expressing concerns about Darwin and David expressing
concerns about AIX, it sounds like it's best to move the #define to
rs6000/sysv4.h instead.  That restricts the effect to the Hurd, Linux,
FreeBSD, NetBSD, plain SYSV, Chorus, eabi*, RTEMS, and VxWorks ports.

zw

  reply	other threads:[~2002-11-08 21:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-07 20:50 Zack Weinberg
2002-11-08  7:56 ` David Edelsohn
2002-11-08 11:20   ` Zack Weinberg
2002-11-08 11:35     ` Dale Johannesen
2002-11-08 13:14       ` Stan Shebs
2002-11-08 13:48         ` Zack Weinberg [this message]
2002-11-08 14:23     ` David Edelsohn
2002-11-08 11:10 ` Mark Mitchell

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=20021108214824.GE1194@egil.codesourcery.com \
    --to=zack@codesourcery.com \
    --cc=dalej@apple.com \
    --cc=dje@watson.ibm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=shebs@apple.com \
    /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).