public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "michal.fita at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/67256] [C++11] Global scope contaminated with symbols from mathcalls.h
Date: Tue, 18 Aug 2015 13:59:00 -0000	[thread overview]
Message-ID: <bug-67256-4-pDUirWehHB@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-67256-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67256

--- Comment #3 from Michał Fita <michal.fita at gmail dot com> ---
Contrary to my expectations #include <cmath> doesn't work either. I would
expect these not declared in global if standard says unspecified, as my logic
whisper that would be more C++ way. I understand then I shouldn't expect to get
this fixed as removing these symbols from global scope would break existing
code?

Interesting thing about declaration in mathcalls.h is that they're surrounded
by _Mdouble_BEGIN_NAMESPACE and _Mdouble_END_NAMESPACE macros, which seem empty
when included from cmath (to my surprise that one redefines all functions in
std on top of what is in math.h). Whether these are empty or not the presence
of _GLIBCPP_USE_NAMESPACES decides.

Now I see it has been mindfully done with purpose: 
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6257
- http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#456

Another point to the C++ list on the side "hate".
>From gcc-bugs-return-495090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 18 14:28:32 2015
Return-Path: <gcc-bugs-return-495090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 125437 invoked by alias); 18 Aug 2015 14:28:31 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 122796 invoked by uid 55); 18 Aug 2015 14:28:22 -0000
From: "segher at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/67028] combine bug. Different assumptions about subreg in different places.
Date: Tue, 18 Aug 2015 14:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: segher at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: segher at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67028-4-pTbYwhcM5J@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67028-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67028-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg01232.txt.bz2
Content-length: 732

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg028

--- Comment #8 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Tue Aug 18 14:27:50 2015
New Revision: 226971

URL: https://gcc.gnu.org/viewcvs?rev"6971&root=gcc&view=rev
Log:
        PR rtl-optimization/67028
        * combine.c (simplify_comparison): Fix comment.  Rearrange code.
        Add test to see if a const_int fits in the new mode.

gcc/testsuite/
        PR rtl-optimization/67028
        * gcc.dg/pr67028.c: New testcase.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr67028.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/combine.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


      parent reply	other threads:[~2015-08-18 13:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-67256-4@http.gcc.gnu.org/bugzilla/>
2015-08-18 12:27 ` [Bug c++/67256] " redi at gcc dot gnu.org
2015-08-18 12:27 ` [Bug libstdc++/67256] " redi at gcc dot gnu.org
2015-08-18 12:43 ` redi at gcc dot gnu.org
2015-08-18 13:59 ` michal.fita at gmail dot com [this message]

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-67256-4-pDUirWehHB@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).