On Fri,  4 Jun 2021 10:29:09 +0300
Claudiu Zissulescu via Gcc-patches <gcc-patches@gcc.gnu.org> wrote:

> Hi Jeff,
> 
> I would like to add spport for selecting the ARCv2 FPU extension at
> configuration-time.
> 
> The --with-fpu configuration option is ignored when -mfpu compiler
> option is specified.
> 
> My concern is using `grep -P` when configuring. Is that ok?

Please don't.
Not every grep(1) has PCRE support so it would be great if you could
rephrase it to use just use normal regexp or ERE.

like e.g.:
grep -q -E "^ARC_CPU \(hs38,[   ]*[emhs]+," config/arc/arc-cpus.def

where the space is <space><^vi>, i.e. space, tab
Or use an awk script that exits appropriately if the arg matches ARCH.

TIA,

Reply via email to