This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH v2] Initial support for C11 Annex K Bounds checking functions
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ulrich Bayer <ubayer at sba-research dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 5 Jun 2013 21:12:36 +0000
- Subject: Re: [RFC][PATCH v2] Initial support for C11 Annex K Bounds checking functions
- References: <5102DBFD dot 4060103 at sba-research dot org> <513DE7A1 dot 8080501 at sba-research dot org> <Pine dot LNX dot 4 dot 64 dot 1305151554100 dot 15900 at digraph dot polyomino dot org dot uk> <51AF6406 dot 30201 at sba-research dot org> <Pine dot LNX dot 4 dot 64 dot 1306051643310 dot 14749 at digraph dot polyomino dot org dot uk>
On Wed, 5 Jun 2013, Joseph S. Myers wrote:
> I don't think it's appropriate to use __THROW on any function with runtime
> constraints; it's reasonable for someone to set a runtime constraint
> handler that throws C++ exceptions.
For the same reason, any source file that may end up calling a user's
runtime constraint handler, directly or indirectly, needs to be built with
the right options; put
CFLAGS-<file>.c = $(uses-callbacks)
in the relevant Makefile.
--
Joseph S. Myers
joseph@codesourcery.com