aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2023-10-27 14:38:02 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2023-11-06 16:45:06 +0000
commit0794263c957ef1f66a5a985ffb8d21031f73be47 (patch)
tree57d402f243ee59b8afd1530d0993c351cd19fe78 /libcpp
parent470b001c4a454a954d05740448e5d2a61a3679cd (diff)
downloadgcc-0794263c957ef1f66a5a985ffb8d21031f73be47.zip
gcc-0794263c957ef1f66a5a985ffb8d21031f73be47.tar.gz
gcc-0794263c957ef1f66a5a985ffb8d21031f73be47.tar.bz2
testsuite: Force use of -c when precompiling headers
In some configurations of our validation setup, we always call the compiler with -Wl,-rpath=XXX, which instructs the driver to invoke the linker if none of -c, -S or -E is used. This happens to be the case in the PCH tests, where dg-flags-pch sets dg-do-what-default to precompile. This works most of the time, in absence of any linker option, the compiler defaults to generating a precompiled header (otherwise the linker complains because it cannot find 'main'). This small patch forces the use of '-c' when generating the .gch file, which is sufficient not to invoke the linker. Arguably, this could be seen as a dejagnu bug: in gcc-dg-test-1 (in gcc-dg.exp), we set compile_type to "precompiled_header", which is not one of the supported values in dejagnu's default_target_compile (in target.exp). 2023-10-27 Christophe Lyon <christophe.lyon@linaro.org> gcc/testsuite/ * lib/dg-pch.exp (dg-flags-pch): Add -c when generating the precompiled header.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions