Currently, address spaces are displayed like '<asn:1>'. It would be much nicer to display them by name instead. This series allows to use a number but also an identifier for the address space attribute. Internally, it now always uses an struct ident for the address space and display this ident in erro messages. If a number was given in the attribute it's converted in an ident '<asn:%d>'. Change since v1: * use an ident for ctype.as instead a of table asn -> ident. * drop the patch adding the -faddress-space-names flag. Change since v2: * add parsing time check for multiple address spaces Luc Van Oostenryck (5): multi-buffer for idents as-name: add and use show_as() as-name: use idents for address spaces as-name: allow ident as address_space as-name: check for multiple address spaces at parsing time evaluate.c | 49 +++++++++++++++------------- parse.c | 47 +++++++++++++++++++++----- show-parse.c | 24 +++++++++----- symbol.c | 4 +-- symbol.h | 23 ++++++++++++- tokenize.c | 6 +++- validation/Waddress-space-all-attr.c | 24 +++++++------- validation/Waddress-space-strict.c | 12 +++---- validation/address_space.c | 2 +- validation/as-name.c | 17 ++++++++++ validation/ptr-inherit.c | 2 +- 11 files changed, 147 insertions(+), 63 deletions(-) create mode 100644 validation/as-name.c -- 2.19.0