On 1 October 2017 at 22:19, Antoine Pitrou email@example.com wrote:
Well, this is not really a bitfield, but a bitfield plus some irregular hardcoded values. Therefore I don't think it brings much in the way of discoverability / understandability.
That's why the 2-field struct for compiler flags was my first idea.
That said, perhaps it makes implementation easier on the C side...
Yep, the fact it would avoid requiring any ABI changes for the C API is the main reason I think redefining the semantics of the existing int parameter is worth considering.
-- Nick Coghlan | firstname.lastname@example.org | Brisbane, Australia