This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH v2] Initial support for C11 Annex K Bounds checking functions


On Thu, 6 Jun 2013, Ulrich Bayer wrote:

> Another question that comes to my mind is what happens in case 
> __STDC_WANT_LIB_EXT1__ is neither 0 (user explicitly disables 
> Annex K functions) nor 1 (user wants it). 

I think values other than 0 and 1, having no semantics defined in Annex K, 
are undefined behavior - but the requirement for a diagnostic for 
conflicting definitions still applies if e.g. the value is 2 for one 
header inclusion and 3 for another (just as is required if the program 
both violates a constraint and does something explicitly listed as 
undefined).

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]