2021-11-27 Paul Eggert <eggert@cs.ucla.edu>
+ gettext-h: use VLA test similar to regex
+ * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Assuming
+ GNULIB_NO_VLA, define if (defined __STDC_VERSION__ && 199901L <=
+ __STDC_VERSION__ \ + && !defined __STDC_NO_VLA___), not if
+ ((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__).
+ This is more consistent with what the regex module does.
+ * modules/gettext-h (Depends-on): Depend on vararrays, since
+ lib/gettext.h uses __STDC_NO_VLA__.
+
regex: port to tcc
Problem reported by Benno Schulenberg in:
https://lists.gnu.org/r/bug-gnulib/2021-11/msg00038.html
or may have security implications due to non-deterministic stack usage. */
#if (!defined GNULIB_NO_VLA \
- && (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \
- /* || (__STDC_VERSION__ == 199901L && !defined __HP_cc)
- || (__STDC_VERSION__ >= 201112L && !defined __STDC_NO_VLA__) */ ))
+ && defined __STDC_VERSION__ && 199901L <= __STDC_VERSION__ \
+ && !defined __STDC_NO_VLA__)
# define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 1
#else
# define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 0