This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] detect incompatible aliases (PR c/81854)
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Martin Sebor <msebor at gmail dot com>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>, Jonathan Wakely <jwakely at redhat dot com>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 18 Sep 2017 21:44:10 +0000
- Subject: Re: [PATCH] detect incompatible aliases (PR c/81854)
- Authentication-results: sourceware.org; auth=none
- References: <b8534b3c-9ffd-5a1c-d5e7-536548c9b742@gmail.com> <alpine.DEB.2.20.1709121613180.28643@digraph.polyomino.org.uk> <3b4c0fe1-9479-dd5c-341d-91a608bb76cc@gmail.com>
On Mon, 18 Sep 2017, Martin Sebor wrote:
> It's meant as an escape hatch. It allows declaring compatibility
> symbols, for example by the libstdc++ _GLIBCXX_3_4_SYMVER macro
> defined in libstdc++-v3/src/c++98/compatibility.cc. The macro is
> used to declare compatibility functions of all sorts of incompatible
> types. The originally posted patch had libstdc++ disable the warning
> for the file with the symbols but Jonathan preferred this solution.
>
> It could perhaps be tightened up to detect some of the cases on your
> list but I'm not sure it's worth the effort and added complexity.
> Let me know if you feel differently (or have a different suggestion),
> otherwise I will go ahead and commit the patch as is.
Please add a comment explaining this reasoning and commit the patch.
--
Joseph S. Myers
joseph@codesourcery.com