[Bug general/24964] elfutils fails to configure/build on CC=clang: configure: error: gcc with GNU99 support required

2021-08-10 Thread adrian.ratiu at collabora dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=24964 --- Comment #3 from Adrian Ratiu --- Hi, Clang builds work fine after the latest fixes in the elfutils codebase, so we can just drop the configure checks generating the failures above. I've sent a patch for it [1] which should be enough to c

[Bug general/24964] elfutils fails to configure/build on CC=clang: configure: error: gcc with GNU99 support required

2021-08-10 Thread adrian.ratiu at collabora dot com via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=24964 Adrian Ratiu changed: What|Removed |Added CC||adrian.ratiu at collabora dot com ---

[PATCH] configure.ac: drop unnecessary gnu99 extension checks

2021-08-10 Thread Adrian Ratiu via Elfutils-devel
It is true that Clang does not support all gnu99 extensions [1], but not all of them are used in the codebase and over time there have been code cleanup efforts to improve Clang support. For example after commit 779c57ea ("readelf: Pull advance_pc() in file scope") there are no more nested functio