Index: tools/bugpoint/ExecutionDriver.cpp =================================================================== --- tools/bugpoint/ExecutionDriver.cpp +++ tools/bugpoint/ExecutionDriver.cpp @@ -124,7 +124,7 @@ cl::ZeroOrMore, cl::PositionalEatsArgs); cl::opt - GCCBinary("gcc", cl::init("gcc"), + GCCBinary("gcc", cl::init(""), cl::desc("The gcc binary to use. (default 'gcc')")); cl::list @@ -148,6 +148,10 @@ SafeInterpreter = nullptr; std::string Message; + // Try to fall-back to clang if the user didn't pass GCC as option. + if (GCCBinary == "") + GCCBinary = "clang"; + switch (InterpreterSel) { case AutoPick: if (!Interpreter) {