[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clang-built Gawk 5.2.1 regex oddity
From: |
Arsen Arsenović |
Subject: |
Re: Clang-built Gawk 5.2.1 regex oddity |
Date: |
Fri, 06 Jan 2023 00:06:56 +0100 |
Hi,
Paul Eggert <eggert@cs.ucla.edu> writes:
> This is a serious bug in Clang: it generates incorrect machine code.
>
> The code that Clang generates for the following (gawk/support/dfa.c lines
> 1141-1143):
>
> ((dfa->syntax.dfaopts & DFA_CONFUSING_BRACKETS_ERROR
> ? dfaerror : dfawarn)
> (_("character class syntax is [[:space:]], not [:space:]")));
>
> is immediately followed by the code generated for the following
> (gawk/support/dfa.c line 1015):
>
> dfaerror (_("invalid character class"));
>
> and this is incorrect because the two source code regions are not connected
> with each other.
This is now fixed in Clang:
https://reviews.llvm.org/rGcf8fd210a35c8e93136cb8edc5c6a2e818dc1b1d
Happy hacking!
--
Arsen Arsenović
signature.asc
Description: PGP signature