Re: [PATCH 1/2] obstack: check def before use in macros

2025-05-07 Thread Bruno Haible via Gnulib discussion list
Paul Eggert wrote: > > Does Solaris cc of > > version 0x5150 or newer really support statement-expressions? > > Yes it does[1]. Thanks for reporting the ChangeLog mistake; I installed > the attached. > > [1]: https://docs.oracle.com/cd/E77782_01/html/E77792/gqexw.html#OSGCCgqexp Thanks!

Re: [PATCH 1/2] obstack: check def before use in macros

2025-05-07 Thread Paul Eggert
On 2025-05-07 14:31, Bruno Haible wrote: -#if defined __GNUC__ || defined __clang__ -# if ! (2 < __GNUC__ + (8 <= __GNUC_MINOR__) || defined __clang__ \ -|| 0x5150 <= __SUNPRO_C) +#if (defined __GNUC__ || defined __clang__ \ + || (defined __SUNPRO_C && 0x5150 <= __SUNPRO_C)) +# if def

Re: [PATCH 1/2] obstack: check def before use in macros

2025-05-07 Thread Bruno Haible via Gnulib discussion list
Paul Eggert wrote: > Simplify the logic for __extension__. > ... > @@ -329,9 +331,9 @@ extern int obstack_exit_failure; > > #define obstack_memory_used(h) _obstack_memory_used (h) > > -#if defined __GNUC__ || defined __clang__ > -# if ! (2 < __GNUC__ + (8 <= __GNUC_MINOR__) || defined __clang_

[PATCH 1/2] obstack: check def before use in macros

2025-05-07 Thread Paul Eggert
* lib/obstack.in.h (__attribute_noreturn__, __extension__): Be more careful about checking whether a macro is defined before using it, as some compilers complain otherwise. Simplify the logic for __extension__. --- ChangeLog| 8 lib/obstack.in.h | 16 +--- 2 files cha