[gcc r17-3425] Darwin: Synchronise profile link options.

Iain D Sandoe via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:a6babf17ce2153b2b4b914809969d2d090467125

commit r17-3425-ga6babf17ce2153b2b4b914809969d2d090467125
Author: Iain Sandoe <[email protected]>
Date:   Wed Aug 19 12:48:53 2026 +0100

    Darwin: Synchronise profile link options.
    
    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]>

Diff:
---
 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 eced7244a1ca..739f91ea9d3f 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 }} \
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.