On Tue, 13 Oct 2020 at 15:51, Richard Sandiford <richard.sandif...@arm.com> wrote: > > Christophe Lyon <christophe.l...@linaro.org> writes: > > On Wed, 23 Sep 2020 at 20:33, Richard Sandiford > > <richard.sandif...@arm.com> wrote: > >> > >> These tests were inspired by the corresponding aarch64 ones that I just > >> committed. They already pass. > >> > >> Tested on arm-linux-gnueabi, arm-linux-gnueabihf and armeb-eabi. > >> OK for trunk? > >> > >> Richard > >> > >> > >> gcc/testsuite/ > >> * gcc.target/arm/stack-protector-5.c: New test. > >> * gcc.target/arm/stack-protector-6.c: Likewise. > >> --- > > > > Hi Richard, > > > > These new tests fail when compiling for cortex-a15 and cortex-a57... > > There are 2 "str" instructions generated, the code is much longer than > > for cortex-a9 for instance. > > > > They pass with cortex-a9, cortex-a5 and arm10tdmi. > > Gah, thanks for the heads-up. I've applied the below as obvious > after testing on arm-linux-gnueabihf and armeb-eabi. >
Nice, I hadn't thought of that workaround. > Richard >