diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp
index ed07c7e018e22ecfe2af7988d3529f9aa8b5643c..a1e76ffacba44d30ff0d49a75e06c38743ce7970 100644
--- a/src/plugins/projectexplorer/gcctoolchain.cpp
+++ b/src/plugins/projectexplorer/gcctoolchain.cpp
@@ -293,7 +293,7 @@ GccToolChain::GccToolChain(const QString &id, bool autodetect) :
 GccToolChain::GccToolChain(const GccToolChain &tc) :
     ToolChain(tc),
     m_predefinedMacros(tc.predefinedMacros()),
-    m_compilerCommand(tc.compilerPath()),
+    m_compilerPath(tc.compilerCommand()),
     m_debuggerCommand(tc.debuggerCommand()),
     m_targetAbi(tc.m_targetAbi),
     m_supportedAbis(tc.m_supportedAbis),
@@ -465,7 +465,7 @@ void GccToolChain::setCompilerCommand(const Utils::FileName &path)
     m_compilerPath = path;
 
     Abi currentAbi = m_targetAbi;
-    m_supportedAbis = findAbiForCompilerPath(m_compilerPath);
+    m_supportedAbis = findAbiForCompilerPath(m_compilerPath.toString());
 
     m_targetAbi = Abi();
     if (!m_supportedAbis.isEmpty()) {