llvm18/llvm-fix-find-gcc5-install.patch
Aaron Puchert d908d9fcff - Update to version 18.1.8.
* Fix a regression from the 18.1.6 release, which could result in
    compiler crashes in the PPCMergeStringPool pass when compiling
    for PowerPC targets.
  * Fixes clang-format regressions (since 18.1.1) on breaking
    before a stream insertion operator (<<) when both operands are
    string literals.
  * Fixes a clang-format regression (since 17.0.6) on formatting
    goto labels in macro definitions.
- Rebase llvm-do-not-install-static-libraries.patch.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm18?expand=0&rev=17
2024-06-30 18:04:58 +00:00

14 lines
528 B
Diff

Index: clang-18.1.0rc1.src/lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- clang-18.1.0rc1.src.orig/lib/Driver/ToolChains/Gnu.cpp
+++ clang-18.1.0rc1.src/lib/Driver/ToolChains/Gnu.cpp
@@ -2179,7 +2179,7 @@ Generic_GCC::GCCVersion Generic_GCC::GCC
return GoodVersion;
}
- if (!TryParseNumber(MinorStr, GoodVersion.Minor))
+ if (!MinorStr.str().empty() && !TryParseNumber(MinorStr, GoodVersion.Minor))
return BadVersion;
GoodVersion.MinorStr = MinorStr;