public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marc.glisse at normalesup dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
Date: Wed, 03 Aug 2011 15:55:00 -0000	[thread overview]
Message-ID: <bug-1773-4-LViEtQg4Mg@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-1773-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773

--- Comment #103 from Marc Glisse <marc.glisse at normalesup dot org> 2011-08-03 15:52:09 UTC ---
(In reply to comment #102)
> What would help enormously for this would be a complete justification
> for the individual fixes:

Of course. I tried to keep the fixincludes to the minimum.

One fixes the issue with getc/getchar explained above.

One removes the extern "C++" overloads of bsearch/qsort because of PR 2316 :
Solaris is right to have those, but most compilers (wrongly) don't consider
linkage (C vs C++) as part of the type and thus to them Solaris is defining the
same function twice.

One wraps the declarations of pow(*,int) with #ifdef so that they remain
available in C++03 (Solaris is right to have them, section 26.5.6 of the
standard) but they disappear in C++0X (to match section 26.8.9 of N3291).

The first 2 are necessary. I believe the last one is not required (it should
just cause one minor bug in C++0X) and can be reconsidered later if you prefer.

I haven't tested the version of the fixinclude patch attached to the bug, I was
going to do that once I get access to a Solaris 10 (we have one, but it takes a
while to register so I can use it). I wrote the patch on S11, so I also wanted
to get a look at the S10 headers to check for differences.

>   In such a case, it will be easier get Oracle's attention so the issue
>   is also fixed upstream.    (If only C++ 2011, it might be a bit of a
>   tougher ride.)

I guess Oracle will implement C++2011 at some point, no need to push them. The
libstdc++ headers will need adjusting when that happens.

The getc issue is worth reporting upstream though.

> * If this is a libstdc++ requirement not currently demanded by a
>   standard, would there be an alternative way to fix this inside
>   libstdc++?  The reason I'm asking is that the OS headers tend to be a
>   moving target, and you may have to keep updating the fix to keep it
>   working.

I completely agree with this, but it looks hard without fixinclude.

Note that I am not a fixinclude expert and it is possible the fixes could be
written in a less fragile way. And I think one "c_fix_arg" is supposed to be
"select" instead.


  parent reply	other threads:[~2011-08-03 15:55 UTC|newest]

Thread overview: 123+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-1773-4@http.gcc.gnu.org/bugzilla/>
2011-03-07 15:58 ` redi at gcc dot gnu.org
2011-03-07 16:39 ` paolo.carlini at oracle dot com
2011-03-07 19:06 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-03-07 19:22 ` marc.glisse at normalesup dot org
2011-03-07 19:58 ` paolo.carlini at oracle dot com
2011-03-08 10:28 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-03-08 11:19 ` paolo.carlini at oracle dot com
2011-03-11 15:45 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-03-11 16:10 ` redi at gcc dot gnu.org
2011-07-21  7:01 ` d.v.a at ngs dot ru
2011-07-21  9:56 ` paolo.carlini at oracle dot com
2011-07-21 11:35 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-07-21 12:10 ` paolo.carlini at oracle dot com
2011-07-21 12:20 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-07-21 12:37 ` paolo.carlini at oracle dot com
2011-07-21 12:49 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-07-22 21:50 ` paolo.carlini at oracle dot com
2011-07-25 17:05 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-07-25 17:16 ` paolo.carlini at oracle dot com
2011-07-30 20:21 ` marc.glisse at normalesup dot org
2011-07-30 21:03 ` marc.glisse at normalesup dot org
2011-07-30 21:11 ` marc.glisse at normalesup dot org
2011-07-30 21:17 ` paolo.carlini at oracle dot com
2011-07-30 23:20 ` marc.glisse at normalesup dot org
2011-07-31 14:04 ` marc.glisse at normalesup dot org
2011-08-01 12:33 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-08-01 12:57 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-08-01 13:08 ` marc.glisse at normalesup dot org
2011-08-01 14:46 ` marc.glisse at normalesup dot org
2011-08-01 16:21 ` marc.glisse at normalesup dot org
2011-08-03 10:04 ` paolo.carlini at oracle dot com
2011-08-03 15:14 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-08-03 15:55 ` marc.glisse at normalesup dot org [this message]
2011-08-03 20:18 ` andrew at ishiboo dot com
2011-08-03 20:30 ` andrew at ishiboo dot com
2011-08-03 21:55 ` marc.glisse at normalesup dot org
2011-08-04 14:24 ` marc.glisse at normalesup dot org
2011-08-04 14:45 ` paolo.carlini at oracle dot com
2011-08-04 15:25 ` marc.glisse at normalesup dot org
2011-08-04 15:34 ` paolo.carlini at oracle dot com
2011-08-04 15:39 ` marc.glisse at normalesup dot org
2011-08-05 15:14 ` marc.glisse at normalesup dot org
2011-08-09 12:58 ` ro at CeBiTec dot Uni-Bielefeld.DE
2011-08-18 17:42 ` ro at gcc dot gnu.org
2011-08-18 18:25 ` ro at gcc dot gnu.org
2011-08-22  0:36 ` paolo.carlini at oracle dot com
2011-09-28 12:28 ` vanboxem.ruben at gmail dot com
2011-09-28 12:40 ` redi at gcc dot gnu.org
2011-09-28 13:05 ` paolo.carlini at oracle dot com
2011-09-28 14:58 ` vanboxem.ruben at gmail dot com
2011-09-28 15:03 ` marc.glisse at normalesup dot org
2011-09-28 15:42 ` redi at gcc dot gnu.org
2011-10-31 19:38 ` jason at gcc dot gnu.org
2011-11-25 19:29 ` tortoise_74 at yahoo dot co.uk
2011-11-25 19:32 ` paolo.carlini at oracle dot com
2011-11-25 19:33 ` paolo.carlini at oracle dot com
2011-11-26 13:26 ` tortoise_74 at yahoo dot co.uk
2011-11-26 13:35 ` redi at gcc dot gnu.org
2011-11-29 11:13 ` tortoise_74 at yahoo dot co.uk
     [not found] <bug-1773-1824@http.gcc.gnu.org/bugzilla/>
2005-11-21  1:41 ` pedro dot lamarao at mndfck dot org
2005-11-21  1:42 ` pedro dot lamarao at mndfck dot org
2005-11-21 10:40 ` pcarlini at suse dot de
2005-11-21 12:27 ` pedro dot lamarao at mndfck dot org
2005-11-21 13:26 ` pedro dot lamarao at mndfck dot org
2005-11-21 13:29 ` pedro dot lamarao at mndfck dot org
2005-11-21 13:35 ` pcarlini at suse dot de
2005-11-21 13:59 ` ebotcazou at gcc dot gnu dot org
2005-11-21 15:12 ` pedro dot lamarao at mndfck dot org
2005-11-21 15:22 ` pcarlini at suse dot de
2005-11-29 10:24 ` pcarlini at suse dot de
2005-11-29 11:51 ` ebotcazou at gcc dot gnu dot org
2005-11-29 14:00 ` pcarlini at suse dot de
2005-12-04 16:34 ` ebotcazou at gcc dot gnu dot org
2005-12-04 16:43 ` pcarlini at suse dot de
2005-12-04 17:11 ` pcarlini at suse dot de
2005-12-04 19:31 ` ebotcazou at gcc dot gnu dot org
2005-12-04 19:46 ` pcarlini at suse dot de
2005-12-04 20:11 ` pedro dot lamarao at mndfck dot org
2005-12-04 20:20 ` pcarlini at suse dot de
2005-12-04 20:29 ` pcarlini at suse dot de
2005-12-04 20:52 ` pcarlini at suse dot de
2005-12-04 21:01 ` ebotcazou at gcc dot gnu dot org
2005-12-04 21:04 ` pcarlini at suse dot de
2005-12-04 21:22 ` ebotcazou at gcc dot gnu dot org
2005-12-04 21:33 ` pcarlini at suse dot de
2006-05-09 13:55 ` marc dot glisse at normalesup dot org
2006-05-09 14:24 ` marc dot glisse at normalesup dot org
2006-05-09 15:17 ` gdr at integrable-solutions dot net
2007-03-28 16:33 ` bkoz at gcc dot gnu dot org
2007-03-28 16:43 ` gdr at cs dot tamu dot edu
2007-03-28 16:49 ` bkoz at gcc dot gnu dot org
2007-03-28 16:49 ` bkoz at gcc dot gnu dot org
2007-03-28 16:54 ` gdr at cs dot tamu dot edu
2007-03-28 17:19 ` bkoz at gcc dot gnu dot org
2007-03-29 11:30 ` marc dot glisse at normalesup dot org
2007-04-02  8:49 ` bkoz at redhat dot com
2007-08-19  1:51 ` bss03 at volumehost dot net
2008-12-19 11:46 ` chris at bubblescope dot net
2010-04-29  9:49 ` redi at gcc dot gnu dot org
2010-04-29  9:54 ` paolo dot carlini at oracle dot com
2010-04-29 10:28 ` marc dot glisse at normalesup dot org
     [not found] <20010125132600.1773.jens.maurer@gmx.net>
2003-08-03 18:56 ` neroden at gcc dot gnu dot org
2003-08-03 19:16 ` gdr at integrable-solutions dot net
2003-08-03 20:19 ` neroden at gcc dot gnu dot org
2003-08-03 20:31 ` gdr at integrable-solutions dot net
2003-08-03 23:01 ` neroden at gcc dot gnu dot org
2003-08-03 23:37 ` gdr at integrable-solutions dot net
2003-08-04  4:32 ` pme at gcc dot gnu dot org
2003-08-04  8:01 ` gdr at integrable-solutions dot net
2003-08-04  8:17 ` phil at jaj dot com
2003-08-04  8:26 ` gdr at integrable-solutions dot net
2003-08-04  8:46 ` phil at jaj dot com
2003-08-04  9:04 ` gdr at integrable-solutions dot net
2003-08-04 16:13 ` bkoz at gcc dot gnu dot org
2003-08-04 17:01 ` phil at jaj dot com
2003-08-04 18:00 ` neroden at gcc dot gnu dot org
2004-01-07 10:26 ` pinskia at gcc dot gnu dot org
2004-01-07 10:27 ` pinskia at gcc dot gnu dot org
2004-01-07 19:00 ` mmitchel at gcc dot gnu dot org
2004-01-07 21:29 ` neroden at gcc dot gnu dot org
2004-01-08 16:59 ` bkoz at gcc dot gnu dot org
2005-03-29 19:19 ` chris at bubblescope dot net
2005-03-29 21:55 ` gdr at integrable-solutions dot net

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=bug-1773-4-LViEtQg4Mg@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).