This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v2] libstdc++: Make certain exceptions transaction_safe.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Torvald Riegel <triegel at redhat dot com>
- Cc: David Edelsohn <dje dot gcc at gmail dot com>, Jonathan Wakely <jwakely at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, Jason Merrill <jason at redhat dot com>
- Date: Sun, 17 Jan 2016 21:32:24 +0100
- Subject: Re: [PATCH v2] libstdc++: Make certain exceptions transaction_safe.
- Authentication-results: sourceware.org; auth=none
- References: <CAGWvnymZpixht_LqsS6ZEDLPnrymcb_sm0zU_pPFDYsjwpQqbA at mail dot gmail dot com> <20160116124323 dot GM15084 at redhat dot com> <CAGWvnynBY3Zh+43Heu0Wkea5P3164XV=09+QOKqUUBGgREGR4Q at mail dot gmail dot com> <20160116133521 dot GN3017 at tucnak dot redhat dot com> <CAGWvny=z0bERxs-ksP=wwoyw9hPZFZoJ8Mq7TcnkA=yTJarwaQ at mail dot gmail dot com> <1453062105 dot 26597 dot 419 dot camel at localhost dot localdomain>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Jan 17, 2016 at 09:21:45PM +0100, Torvald Riegel wrote:
> The attached patch works around this by always definining stubs for the
> libitm functions, yet declaring them weak at the same time. If
This doesn't look like a good idea. The dynamic linker doesn't make
difference between weak and non-weak definitions, only ld(1) does,
so if for whatever reason libstdc++ appears earlier in the search scope than
libitm, TM programs would stop working because of this.
Jakub