Fix PR libstdc++/78264
Eric Botcazou
ebotcazou@adacore.com
Thu Dec 8 15:53:00 GMT 2016
As documented a few lines below in the same file (but I presume that the
BADNAMES file is long gone), using _N wreaks havoc on Solaris:
// This marks string literals in header files to be extracted for eventual
// translation. It is primarily used for messages in thrown exceptions; see
// src/functexcept.cc. We use __N because the more traditional _N is used
// for something else under certain OSes (see BADNAMES).
#define __N(msgid) (msgid)
Tested on x86-64/Linux and SPARC/Solaris, applied on mainline as obvious.
2016-12-08 Eric Botcazou <ebotcazou@adacore.com>
PR libstdc++/78264
* include/bits/c++config (_GLIBCXX_NOEXCEPT_PARM): Turn _N into _NE.
(_GLIBCXX_NOEXCEPT_QUAL): Likewise.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr78264.diff
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20161208/32a09b12/attachment.bin>
More information about the Libstdc++
mailing list