commit | 5a83a50c47c46c54a443aa18ed6456416fa27a98 | [log] [tgz] |
---|---|---|
author | Etienne Carriere <etienne.carriere@linaro.org> | Thu Apr 25 10:19:05 2019 +0200 |
committer | Jérôme Forissier <jerome.forissier@linaro.org> | Tue Apr 30 12:55:47 2019 +0200 |
tree | ab92c77d85d71a54e8a200faf06a623b2d1ad77f | |
parent | e4f6f76b4cb5763112f4722981f84a26f4ac7e55 [diff] |
regression 41xx: prevent unsafe-loop-optimizations build error Add -Wno-unsafe-loop-optimizations directive since regression_4100.c fails to build on some recent toolchains as GCC 7.3.0 and 7.4.0 with an error trace like below. Note building with GCC 8.2.1 does not reproduce the build issue. /path/to/optee_test/host/xtest/regression_4100.c: In function ‘convert_from_string’: /path/to/optee_test/host/xtest/regression_4100.c:448:8: error: missed loop optimization, the loop counter may overflow [-Werror=unsafe-loop-optimizations] while (spos) { ^ /path/to/optee_test/host/xtest/regression_4100.c:455:6: error: missed loop optimization, the loop counter may overflow [-Werror=unsafe-loop-optimizations] if (!spos) ^ The GNU Makefile build sequence defines -Wno-unsafe-loop-optimizations for the whole xtest sources while CMake build sequence defines it specifically for regression_4100.c among xtest source files. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
This git contains source code for the test suite (xtest) used to test the OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.
// OP-TEE core maintainers