[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: __builtin_expect used in regex
From: |
Bruno Haible |
Subject: |
Re: __builtin_expect used in regex |
Date: |
Sun, 30 Sep 2018 19:11:12 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-134-generic; KDE/5.18.0; x86_64; ; ) |
Hi Arnold,
> Nelson, please chime in with a list of the system + compiler combinations
> where gawk needs this patch.
Basically, all platforms with a non-GCC compiler will need this patch.
Think of Solaris cc, HP-UX cc, native Windows with MSVC...
> As I mentioned, this is really a gnulib
> issue and thus I'm reporting it there.
No, it is not an issue in gnulib. In gnulib, the module 'regex' depends
on the module 'builtin-expect' (with the appropriate condition), and this
latter module guarantees that __builtin_expect is defined also on non-GCC
compilers.
The issue is with gawk's use of gnulib: it does not use gnulib-tool and
instead relies on (error-prone) manual sync from source files from gnulib.
Bruno