]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: arm: Use -Os in memset-inline-8* tests
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Sun, 22 Dec 2024 15:19:17 +0000 (16:19 +0100)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Thu, 9 Jan 2025 21:25:04 +0000 (22:25 +0100)
commit1f509da6d7c9679f727daf539c30f8f1816dd16e
treed191f6cc86f0a4bbad0d1247a7d274e24522e940
parentdedaccb4a0dedb47facf7af3b044ac684e9b29ff
testsuite: arm: Use -Os in memset-inline-8* tests

When the test was initially created, -fcommon was the default, but in
commit r10-4867-g6271dd984d7 the default value changed to -fno-common.
This change made the test start failing. To counter the over-alignment
caused by 'a' no longer being common, use -Os.

gcc/testsuite/ChangeLog:

* gcc.target/arm/memset-inline-8.c: Use -Os and prefix assembler
instructions with a tab to improve test stability.
* gcc.target/arm/memset-inline-8-exe.c: Use -Os.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
(cherry picked from commit 681934aead9c1310e3b910d18986b76272168a80)
gcc/testsuite/gcc.target/arm/memset-inline-8-exe.c
gcc/testsuite/gcc.target/arm/memset-inline-8.c