Home | History | Annotate | Download | only in bugpoint

Lines Matching refs:gccArgs

186                                const std::vector<std::string> &GCCArgs,
199 const std::vector<std::string> &GCCArgs,
307 const std::vector<std::string> &GCCArgs =
363 const std::vector<std::string> &GCCArgs,
376 const std::vector<std::string> &GCCArgs,
540 std::vector<std::string> GCCArgs(ArgsForGCC);
541 GCCArgs.insert(GCCArgs.end(), SharedLibs.begin(), SharedLibs.end());
545 InputFile, OutputFile, Error, GCCArgs,
555 const std::vector<std::string> *GCCArgs,
564 GCC *gcc = GCC::create(Message, GCCBinary, GCCArgs);
592 const std::vector<std::string> &GCCArgs =
606 const std::vector<std::string> &GCCArgs,
682 std::vector<const char*> GCCArgs;
684 GCCArgs.push_back(GCCPath.c_str());
687 GCCArgs.push_back("-m32");
690 I = gccArgs.begin(), E = gccArgs.end(); I != E; ++I)
691 GCCArgs.push_back(I->c_str());
695 GCCArgs.push_back("-x");
697 GCCArgs.push_back("c");
698 GCCArgs.push_back("-fno-strict-aliasing");
700 GCCArgs.push_back("assembler");
705 if (TargetTriple.isOSDarwin() && !IsARMArchitecture(GCCArgs))
706 GCCArgs.push_back("-force_cpusubtype_ALL");
710 GCCArgs.push_back(ProgramFile.c_str()); // Specify the input filename.
712 GCCArgs.push_back("-x");
713 GCCArgs.push_back("none");
714 GCCArgs.push_back("-o");
723 GCCArgs.push_back(OutputBinary.c_str()); // Output to the right file...
730 GCCArgs.push_back(ArgsForGCC[i].c_str());
732 GCCArgs.push_back("-lm"); // Hard-code the math library...
733 GCCArgs.push_back("-O2"); // Optimize the program a bit...
735 GCCArgs.push_back("-Wl,-R."); // Search this dir for .so files
738 GCCArgs.push_back("-mcpu=v9");
739 GCCArgs.push_back(0); // NULL terminator
743 for (unsigned i = 0, e = GCCArgs.size()-1; i != e; ++i)
744 errs() << " " << GCCArgs[i];
747 if (RunProgramWithTimeout(GCCPath, &GCCArgs[0], "", "", "")) {
748 *Error = ProcessFailure(GCCPath, &GCCArgs[0]);
835 std::vector<const char*> GCCArgs;
837 GCCArgs.push_back(GCCPath.c_str());
840 GCCArgs.push_back("-m32");
843 I = gccArgs.begin(), E = gccArgs.end(); I != E; ++I)
844 GCCArgs.push_back(I->c_str());
848 GCCArgs.push_back("-x");
849 GCCArgs.push_back(fileType == AsmFile ? "assembler" : "c");
851 GCCArgs.push_back("-fno-strict-aliasing");
852 GCCArgs.push_back(InputFile.c_str()); // Specify the input filename.
853 GCCArgs.push_back("-x");
854 GCCArgs.push_back("none");
856 GCCArgs.push_back("-G"); // Compile a shared library, `-G' for Sparc
862 GCCArgs.push_back("-single_module");
863 GCCArgs.push_back("-dynamiclib"); // `-dynamiclib' for MacOS X/PowerPC
864 GCCArgs.push_back("-undefined");
865 GCCArgs.push_back("dynamic_lookup");
867 GCCArgs.push_back("-shared"); // `-shared' for Linux/X86, maybe others
870 GCCArgs.push_back("-fPIC"); // Requires shared objs to contain PIC
873 GCCArgs.push_back("-mcpu=v9");
875 GCCArgs.push_back("-o");
876 GCCArgs.push_back(OutputFile.c_str()); // Output to the right filename.
877 GCCArgs.push_back("-O2"); // Optimize the program a bit.
886 GCCArgs.push_back(ArgsForGCC[i].c_str());
887 GCCArgs.push_back(0); // NULL terminator
893 for (unsigned i = 0, e = GCCArgs.size()-1; i != e; ++i)
894 errs() << " " << GCCArgs[i];
897 if (RunProgramWithTimeout(GCCPath, &GCCArgs[0], "", "", "")) {
898 Error = ProcessFailure(GCCPath, &GCCArgs[0]);