[arm] Use -Os for stack-protector-[56].c tests
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 13 Oct 2020 13:50:24 +0000 (14:50 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 13 Oct 2020 13:50:24 +0000 (14:50 +0100)
commitf694a0d2edc025cb54657cb804960f97a31fbda2
treee88cbc4a23e6b0ee7db30a927508f5dbecd62b92
parent25095d1ef8dd24c646fd337a607fb94a06e73f6c
[arm] Use -Os for stack-protector-[56].c tests

Using -O2 made the tests subject to LDRD vs. LDM tuning.
The simplest fix seems to be to use -Os, so that LDM is
unequivocally a win.

gcc/testsuite/
* gcc.target/arm/stack-protector-5.c: Use -Os rather than -O2.
* gcc.target/arm/stack-protector-6.c: Likewise.
gcc/testsuite/gcc.target/arm/stack-protector-5.c
gcc/testsuite/gcc.target/arm/stack-protector-6.c