Tested on x86_64, i686 Darwin, pushed to trunk, thanks,
Iain
--- < ---
We had got behind gcc/gcc.cc in the options that need to link lgcov.
gcc/ChangeLog:
* config/darwin.h (LINK_COMMAND_SPEC_A): Synchronise the
options for coverage with gcc/gcc.cc.
Signed-off-by: Iain Sandoe <[email protected]>
---
gcc/config/darwin.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index eced7244a1c..739f91ea9d3 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -433,7 +433,8 @@ extern GTY(()) int darwin_ms_struct;
%{!r:%{!nostdlib:%{!nodefaultlibs: " DARWIN_WEAK_CRTS "}}} \
%o \
%{!r:%{!nostdlib:%{!nodefaultlibs:\
- %{fprofile-arcs|fcondition-coverage|fprofile-generate*|coverage:-lgcov} \
+ %{fprofile-arcs|fcondition-coverage|fpath-coverage|\
+ fprofile-generate*|coverage:-lgcov} \
%{fopenacc|fopenmp|%:gt(%{ftree-parallelize-loops=*:%*} 1): \
%{static|static-libgcc|static-libstdc++|static-libgfortran: \
libgomp.a%s; : -lgomp }} \
--
2.50.1 (Apple Git-155)