]> gcc.gnu.org Git - gcc.git/commit
testsuite: Only run test on target if VMA == LMA
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 16 Sep 2022 17:49:01 +0000 (19:49 +0200)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 30 Sep 2022 16:28:46 +0000 (18:28 +0200)
commit5fb71366da6ec5cd4dbc0262c6747804e319a7b7
tree6a38b1a91c33ade838304c7bcb7f9942250bd024
parent86291da0057d01efdaba71f28cad80b69dc703a4
testsuite: Only run test on target if VMA == LMA

Checking that the triplet matches arm*-*-eabi (or msp430-*-*) is not
enough to know if the execution will enter an endless loop, or if it
will give a meaningful result. As the execution test only work when
VMA and LMA are equal, make sure that this condition is met.

gcc/ChangeLog:

* doc/sourcebuild.texi: Document new vma_equals_lma effective
target check.

gcc/testsuite/ChangeLog:

* lib/target-supports.exp (check_effective_target_vma_equals_lma): New.
* c-c++-common/torture/attr-noinit-1.c: Requre VMA == LMA to run.
* c-c++-common/torture/attr-noinit-2.c: Likewise.
* c-c++-common/torture/attr-noinit-3.c: Likewise.
* c-c++-common/torture/attr-persistent-1.c: Likewise.
* c-c++-common/torture/attr-persistent-3.c: Likewise.

Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com>
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gcc/doc/sourcebuild.texi
gcc/testsuite/c-c++-common/torture/attr-noinit-1.c
gcc/testsuite/c-c++-common/torture/attr-noinit-2.c
gcc/testsuite/c-c++-common/torture/attr-noinit-3.c
gcc/testsuite/c-c++-common/torture/attr-persistent-1.c
gcc/testsuite/c-c++-common/torture/attr-persistent-3.c
gcc/testsuite/lib/target-supports.exp
This page took 0.066549 seconds and 6 git commands to generate.