public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-10382] Darwin: Correct a version check.
@ 2024-04-22 18:48 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2024-04-22 18:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:13ae931863dcc3684742ed81ce84d005fbec1bb7

commit r12-10382-g13ae931863dcc3684742ed81ce84d005fbec1bb7
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Mon Apr 1 20:47:25 2024 +0100

    Darwin: Correct a version check.
    
    When the version for dsymutil comes from a clang build, it is
    of the form NNmm.pp.qq where NN and mm are the major and minor
    LLVM version components.  We need to check for a major version
    greater than or equal to 7 - so use 700 in the check.
    
    gcc/ChangeLog:
    
            * config/darwin.cc (darwin_override_options): Update the
            clang major version value in the dsymutil check.
    
    Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
    (cherry picked from commit 451bb0b9262d2f54173937569a29d7f1ad234e30)

Diff:
---
 gcc/config/darwin.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/darwin.cc b/gcc/config/darwin.cc
index 6153f3c39fe..76feb87a29d 100644
--- a/gcc/config/darwin.cc
+++ b/gcc/config/darwin.cc
@@ -3381,7 +3381,7 @@ darwin_override_options (void)
       /* External toolchains based on LLVM or clang 7+ have support for
 	 dwarf-4.  */
       if ((dsymutil_version.kind == LLVM && dsymutil_version.major >= 7)
-	  || (dsymutil_version.kind == CLANG && dsymutil_version.major >= 7))
+	  || (dsymutil_version.kind == CLANG && dsymutil_version.major >= 700))
 	dwarf_version = 4;
       else if (dsymutil_version.kind == DWARFUTILS
 	       && dsymutil_version.major >= 121)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-22 18:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-22 18:48 [gcc r12-10382] Darwin: Correct a version check Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).