Re: [PATCH v3 1/2] scripts: Add "|" operator support to glibcpp's parsing

2022-11-27 Thread Florian Weimer
* Shahab Vahedi: > From the tests point of view, this is a necessary step for another > patch [1] and allows parsing macros such as "#define A | B". Without > it, a few tests [2] choke when the other patch [1] is applied: > > /src/glibc/scripts/../elf/elf.h:4167: error: uninterpretable macro >

[PATCH v3 2/2] ARC: update definitions in elf/elf.h

2022-11-27 Thread Shahab Vahedi
While porting ARCv2 to elfutils [1], it was brought up that the necessary changes to the project's libelf/elf.h must come from glibc, because they sync it from glibc [2]. Therefore, this patch is to update ARC entries in elf/elf.h. The majority of the update is about adding new definitions,

[PATCH v3 0/2] Update ARC definitions in elf/elf.h

2022-11-27 Thread Shahab Vahedi
After updating the ARC definitions in elf/elf.h (the second patch of this series), I noticed a lack of parsing support for it in glibcpp.py. Please read the description of the first patch for more details. To have the tests pass all the time, the first patch fixes the potential issue and the

[PATCH v3 1/2] scripts: Add "|" operator support to glibcpp's parsing

2022-11-27 Thread Shahab Vahedi
>From the tests point of view, this is a necessary step for another patch [1] and allows parsing macros such as "#define A | B". Without it, a few tests [2] choke when the other patch [1] is applied: /src/glibc/scripts/../elf/elf.h:4167: error: uninterpretable macro token sequence: (