ProjectExplorer: Evaluate -mfloat-abi for macros

The option -mfloat-abi sets macros (in this case __ARM_PCS_VFP), so it
should be evaluated while determining the macros for the code model and
the clang static analyzer.

Task-number: QTCREATORBUG-17797
Change-Id: I22a72d31956521b7e2ad7c1126036b25cfe0898d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-03-10 15:17:40 +01:00
parent ef470a1d10
commit a76474f5c5

View File

@@ -377,6 +377,7 @@ QByteArray GccToolChain::predefinedMacros(const QStringList &cxxflags) const
|| a == QLatin1String("-m64") || a == QLatin1String("-m96bit-long-double")
|| a == QLatin1String("-mabm") || a == QLatin1String("-maes")
|| a.startsWith(QLatin1String("-march=")) || a == QLatin1String("-mavx")
|| a.startsWith(QLatin1String("-mfloat-abi"))
|| a.startsWith(QLatin1String("-masm=")) || a == QLatin1String("-mcx16")
|| a == QLatin1String("-mfma") || a == QLatin1String("-mfma4")
|| a == QLatin1String("-mlwp") || a == QLatin1String("-mpclmul")