qt6-bb10/tests/auto
Marc Mutz 564be117fe tst_QByteArrayView: expose constExpr() test to non-ubsan GCC builds
Because of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71962, and
because marking constExpr() as __attribute__((no_sanitize_undefined))
doesn't fix a thing, we opted to disable the triggering parts of
constExpr() from all GCC builds.

This is, of course, unfortunate, since it meaningfully reduces
compile-time coverage in the general case for a rather obscure build
type most won't ever use.

While GCC doesn't give us a predefined macro to check for in the .cpp
file, the cmake build system knows whether we use ubsan, so just
define a macro of our own.

As a drive-by, simplify GCC detection by using Q_CC_GCC_ONLY.

Amends de6a004bc5.

Pick-to: 6.7 6.5 6.2
Task-number: QTBUG-101307
Change-Id: I4be5bd103b9d2386b2ac9fd22e0c34f9c63fee04
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2024-05-23 01:36:54 +02:00
..
bic/data Add binary compatibility file for 6.7.0 2024-04-17 10:18:37 +00:00
cmake Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
concurrent Fix truncation warning in generation_helpers 2024-03-18 20:10:34 +01:00
corelib tst_QByteArrayView: expose constExpr() test to non-ubsan GCC builds 2024-05-23 01:36:54 +02:00
dbus QDBusSignature: accept empty strings as valid 2024-05-10 13:17:20 -07:00
gui Support application fallbacks for common script 2024-05-21 07:24:03 +02:00
guiapplauncher Convert "Color Editor Factory" Example to snippets 2024-04-19 13:39:41 +02:00
network tst_http2: fix -Wunused-parameter warning 2024-05-22 15:47:50 +02:00
opengl tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00
other a11y: Notify of name change when setting window title used as a11y name 2024-05-22 08:50:31 +02:00
printsupport Change license for tests files 2024-02-04 09:56:42 +01:00
shared Change license for tests files 2024-02-04 09:56:42 +01:00
sql SQL tests: Fix dropping procedures Firebird/IBase 2024-05-08 08:36:19 +02:00
testlib Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
tools Add REUSE ignore comment 2024-05-08 11:09:28 +00:00
wasm Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
widgets Widgets focus abstraction: Fix re-parenting 2024-05-23 01:12:32 +02:00
xml Add copyright and licensing to build system files missing it 2024-05-21 17:23:21 +02:00
CMakeLists.txt wasm: Enable qstandardpaths test 2024-05-06 16:01:28 +02:00
network-settings.h Change license for tests files 2024-02-04 09:56:42 +01:00