bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clang-built Gawk 5.2.1 regex oddity


From: arnold
Subject: Re: Clang-built Gawk 5.2.1 regex oddity
Date: Fri, 06 Jan 2023 05:21:03 -0700
User-agent: Heirloom mailx 12.5 7/5/10

Thanks for the update.

Paul, let's leave dfa.c as is, with the modified code.
It's much easier to read anyway.

Thanks,

Arnold

Arsen Arsenović <arsen@aarsen.me> wrote:

> 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ć



reply via email to

[Prev in Thread] Current Thread [Next in Thread]