From 20104bb237d5231640649bcc610d4e51e03ea617 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 2 May 2022 09:47:15 -0700 Subject: Remove remnants of the old Intel C++ compiler We don't support it any more. I don't think it has ever properly compiled Qt 6 (and it's no longer working for me against GCC 12's libstdc++ headers). If you report a bug against it, Intel support's first question is if you can try instead the new Clang/LLVM-based oneAPI C++ compiler. So we support only that one, which identifies itself as Q_CC_CLANG. Change-Id: I5ff8e16fcdcb4ffd9ab6fffd16eb57a092c8439e Reviewed-by: Marc Mutz --- src/corelib/text/qanystringview.h | 2 +- src/corelib/text/qstring.cpp | 2 +- src/corelib/text/qstringview.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/corelib/text') diff --git a/src/corelib/text/qanystringview.h b/src/corelib/text/qanystringview.h index 102a5b63ae..65b74c4664 100644 --- a/src/corelib/text/qanystringview.h +++ b/src/corelib/text/qanystringview.h @@ -123,7 +123,7 @@ private: template static qsizetype lengthHelperPointer(const Char *str) noexcept { -#if defined(Q_CC_GNU) && !defined(Q_CC_CLANG) && !defined(Q_CC_INTEL) +#if defined(Q_CC_GNU) && !defined(Q_CC_CLANG) if (__builtin_constant_p(*str)) { qsizetype result = 0; while (*str++ != u'\0') diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index acf02832da..00e12fe35d 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -360,7 +360,7 @@ extern "C" void qt_fromlatin1_mips_asm_unroll8 (char16_t*, const char*, uint); extern "C" void qt_toLatin1_mips_dsp_asm(uchar *dst, const char16_t *src, int length); #endif -#if defined(__SSE2__) && defined(Q_CC_GNU) && !defined(Q_CC_INTEL) +#if defined(__SSE2__) && defined(Q_CC_GNU) # if defined(__SANITIZE_ADDRESS__) && Q_CC_GNU < 800 && !defined(Q_CC_CLANG) # warning "The __attribute__ on below will likely cause a build failure with your GCC version. Your choices are:" # warning "1) disable ASan;" diff --git a/src/corelib/text/qstringview.h b/src/corelib/text/qstringview.h index 194a8280c9..3c1f852c27 100644 --- a/src/corelib/text/qstringview.h +++ b/src/corelib/text/qstringview.h @@ -154,7 +154,7 @@ private: #if defined(__cpp_lib_is_constant_evaluated) if (std::is_constant_evaluated()) return std::char_traits::length(str); -#elif defined(Q_CC_GNU) && !defined(Q_CC_CLANG) && !defined(Q_CC_INTEL) +#elif defined(Q_CC_GNU) && !defined(Q_CC_CLANG) if (__builtin_constant_p(*str)) return std::char_traits::length(str); #endif -- cgit v1.2.3