RE: arm: Fix CMSE support detection in libgcc (PR target/99157)

2021-02-24 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Gcc-patches On Behalf Of > Christophe Lyon via Gcc-patches > Sent: 24 February 2021 15:14 > To: gcc Patches > Subject: Re: arm: Fix CMSE support detection in libgcc (PR target/99157) > > On Tue, 23 Feb 2021 at 18:29, Christophe L

Re: arm: Fix CMSE support detection in libgcc (PR target/99157)

2021-02-24 Thread Christophe Lyon via Gcc-patches
On Tue, 23 Feb 2021 at 18:29, Christophe Lyon wrote: > > As discussed in the PR, the Makefile fragment lacks a double '$' to > get the return-code from GCC invocation, resulting is CMSE support > missing from multilibs. > > I checked that the simple patch proposed in the PR fixes the problem. BTW

arm: Fix CMSE support detection in libgcc (PR target/99157)

2021-02-23 Thread Christophe Lyon via Gcc-patches
HAVE_CMSE:=$(findstring __ARM_FEATURE_CMSE,$(shell $(gcc_compile_bare) -dM -E - /dev/null 2>/dev/null; echo $?),0) +ifeq ($(shell $(gcc_compile_bare) -E -mcmse - /dev/null 2>/dev/null; echo $$?),0) CMSE_OPTS:=-mcmse endif arm: Fix CMSE support detection in libgcc (PR target/99157) As discusse