aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov.c
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2021-08-05 10:07:03 +0100
committerIain Sandoe <iain@sandoe.co.uk>2021-08-19 09:18:52 +0100
commiteea1677fd03a1cb820cbb72044d4a0770f8a7a93 (patch)
tree6237223a4fce493cb4b7df299c02a4e450c3a2fd /gcc/gcov.c
parentb7fc42073c04813f6b63e0641d3f6765424857c9 (diff)
downloadgcc-eea1677fd03a1cb820cbb72044d4a0770f8a7a93.zip
gcc-eea1677fd03a1cb820cbb72044d4a0770f8a7a93.tar.gz
gcc-eea1677fd03a1cb820cbb72044d4a0770f8a7a93.tar.bz2
JIT, testsuite, Darwin: Initial testsuite fixes.
The testsuite setup for jit is not compatible with Darwin since it assumes that all targets support --export-dynamic. - this is fixed by adding '-rdynamic' conditionally upon target support for that (-rdynamic will be converted to the appropriate linker option). There is also an assumption that a suitable version of dejagnu.h is present in some default include search path that is usable from the testsuite. This is not the case for Darwin (dejagnu.h is not installed, and would not, in general, be found in any default include search path if installed via one of the main 'distros'). Also the upstream dejagnu.h has a definition of 'wait()' that clashes with a libc routines and therefore causes fails in the testsuite. - This patch imports the header from dejagnu-1.6.2 and * renames it to 'jit-dejagnu.h' * patches it to avoid unused variable warnings and the clash with the libc definition of wait () * In accordance with the advice in the expect man page, ensures that the final output of the 'totals' print is stable. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> gcc/jit/ChangeLog: * docs/examples/tut04-toyvm/toyvm.c: Include jit-dejagnu.h. * docs/examples/tut04-toyvm/toyvm.cc: Likewise. * jit-dejagnu.h: New file, imported from dejagnu-1.6.2 and patched for this application. gcc/testsuite/ChangeLog: * jit.dg/harness.h: Include jit-dejagnu.h. * jit.dg/jit.exp: Use -rdynamic conditionally on target support, instead of unconditional -Wl,--export-dynamic.
Diffstat (limited to 'gcc/gcov.c')
0 files changed, 0 insertions, 0 deletions