Lines Matching +full:i686 +full:- +full:6

1 //===--- MinGW.cpp - MinGWToolChain Implementation ------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
39 CmdArgs.push_back("--32"); in ConstructJob()
41 CmdArgs.push_back("--64"); in ConstructJob()
46 CmdArgs.push_back("-o"); in ConstructJob()
64 CmdArgs.push_back("-lmingwthrd"); in AddLibGCC()
65 CmdArgs.push_back("-lmingw32"); in AddLibGCC()
67 // Make use of compiler-rt if --rtlib option is used in AddLibGCC()
76 CmdArgs.push_back("-lgcc"); in AddLibGCC()
77 CmdArgs.push_back("-lgcc_eh"); in AddLibGCC()
79 CmdArgs.push_back("-lgcc_s"); in AddLibGCC()
80 CmdArgs.push_back("-lgcc"); in AddLibGCC()
86 CmdArgs.push_back("-lmoldname"); in AddLibGCC()
87 CmdArgs.push_back("-lmingwex"); in AddLibGCC()
93 CmdArgs.push_back("-lmsvcrt"); in AddLibGCC()
107 // Silence warning for "clang -g foo.o -o foo" in ConstructJob()
109 // and "clang -emit-llvm foo.o -o foo" in ConstructJob()
111 // and for "clang -w foo.o -o foo". Other warning options are already in ConstructJob()
116 CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot)); in ConstructJob()
119 CmdArgs.push_back("-s"); in ConstructJob()
121 CmdArgs.push_back("-m"); in ConstructJob()
146 if (SubsysArg && SubsysArg->getOption().matches(options::OPT_mwindows)) { in ConstructJob()
147 CmdArgs.push_back("--subsystem"); in ConstructJob()
150 SubsysArg->getOption().matches(options::OPT_mconsole)) { in ConstructJob()
151 CmdArgs.push_back("--subsystem"); in ConstructJob()
156 CmdArgs.push_back("--dll"); in ConstructJob()
158 CmdArgs.push_back("--shared"); in ConstructJob()
160 CmdArgs.push_back("-Bstatic"); in ConstructJob()
162 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
164 CmdArgs.push_back("-e"); in ConstructJob()
169 CmdArgs.push_back("--enable-auto-image-base"); in ConstructJob()
173 CmdArgs.push_back("--no-demangle"); in ConstructJob()
177 CmdArgs.push_back("--disable-auto-import"); in ConstructJob()
180 StringRef GuardArgs = A->getValue(); in ConstructJob()
182 CmdArgs.push_back("--no-guard-cf"); in ConstructJob()
183 else if (GuardArgs == "cf" || GuardArgs == "cf-nochecks") in ConstructJob()
184 CmdArgs.push_back("--guard-cf"); in ConstructJob()
187 << A->getSpelling() << GuardArgs; in ConstructJob()
190 CmdArgs.push_back("-o"); in ConstructJob()
202 // FIXME: add -N, -n flags in ConstructJob()
235 // Add the compiler-rt library directories if they exist to help in ConstructJob()
239 CmdArgs.push_back(Args.MakeArgString("-L" + LibPath)); in ConstructJob()
243 CmdArgs.push_back(Args.MakeArgString("-L" + CRTPath)); in ConstructJob()
264 CmdArgs.push_back("-Bstatic"); in ConstructJob()
267 CmdArgs.push_back("-Bdynamic"); in ConstructJob()
281 CmdArgs.push_back("--start-group"); in ConstructJob()
286 CmdArgs.push_back("-lssp_nonshared"); in ConstructJob()
287 CmdArgs.push_back("-lssp"); in ConstructJob()
294 CmdArgs.push_back("-lomp"); in ConstructJob()
297 CmdArgs.push_back("-liomp5md"); in ConstructJob()
300 CmdArgs.push_back("-lgomp"); in ConstructJob()
311 CmdArgs.push_back("-lgmon"); in ConstructJob()
314 CmdArgs.push_back("-lpthread"); in ConstructJob()
322 CmdArgs.push_back("--require-defined"); in ConstructJob()
328 CmdArgs.push_back("--whole-archive"); in ConstructJob()
331 CmdArgs.push_back("--no-whole-archive"); in ConstructJob()
341 CmdArgs.push_back("-lgdi32"); in ConstructJob()
342 CmdArgs.push_back("-lcomdlg32"); in ConstructJob()
344 CmdArgs.push_back("-ladvapi32"); in ConstructJob()
345 CmdArgs.push_back("-lshell32"); in ConstructJob()
346 CmdArgs.push_back("-luser32"); in ConstructJob()
347 CmdArgs.push_back("-lkernel32"); in ConstructJob()
351 CmdArgs.push_back("--end-group"); in ConstructJob()
355 CmdArgs.push_back("-lkernel32"); in ConstructJob()
389 StringRef VersionText = llvm::sys::path::filename(LI->path()); in findGccVersion()
392 if (CandidateVersion.Major == -1) in findGccVersion()
398 GccLibDir = LI->path(); in findGccVersion()
405 // The arch portion of the triple may be overridden by -m32/-m64. in getLiteralTriple()
415 SubdirNames.back() += "-w64-mingw32"; in findGccLibDir()
417 SubdirNames.back() += "-w64-mingw32ucrt"; in findGccLibDir()
421 SubdirName += "-w64-mingw32"; in findGccLibDir()
441 Gccs.back() += "-gcc"; in findGcc()
443 Gccs.back() += "-gcc"; in findGcc()
445 Gccs.back() += "-w64-mingw32-gcc"; in findGcc()
447 Gccs.back() += "-w64-mingw32ucrt-gcc"; in findGcc()
448 Gccs.emplace_back("mingw32-gcc"); in findGcc()
463 Subdirs.back() += "-w64-mingw32"; in findClangRelativeSysroot()
465 Subdirs.back() += "-w64-mingw32ucrt"; in findClangRelativeSysroot()
499 // Look for <clang-bin>/../<triplet>; if found, use <clang-bin>/.. as the in MinGW()
524 std::string CandidateSubdir = SubdirName + "/sys-root/mingw"; in MinGW()
536 // windows->windows to a different arch), or if the sysroot has been set in MinGW()
581 ExceptionArg->getOption().matches(options::OPT_fseh_exceptions)) in getDefaultUnwindTableLevel()
620 CudaInstallation->AddCudaIncludeArgs(DriverArgs, CC1Args); in AddCudaIncludeArgs()
625 RocmInstallation->AddHIPIncludeArgs(DriverArgs, CC1Args); in AddHIPIncludeArgs()
629 CudaInstallation->print(OS); in printVerboseInfo()
630 RocmInstallation->print(OS); in printVerboseInfo()
642 // Windows, mingw-w64 mingw-builds
643 // c:\mingw32\i686-w64-mingw32\include
644 // c:\mingw32\i686-w64-mingw32\include\c++
645 // c:\mingw32\i686-w64-mingw32\include\c++\i686-w64-mingw32
646 // c:\mingw32\i686-w64-mingw32\include\c++\backward
648 // Windows, mingw-w64 msys2
650 // c:\msys64\mingw32\i686-w64-mingw32\include
652 // c:\msys64\mingw32\include\c++\4.9.2\i686-w64-mingw32
656 // /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++
657 // /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/x86_64-w64-mingw32
658 // /usr/lib64/gcc/x86_64-w64-mingw32/5.1.0/include/c++/backward
659 // /usr/x86_64-w64-mingw32/sys-root/mingw/include
662 // /usr/i686-w64-mingw32/include/c++/5.1.0
663 // /usr/i686-w64-mingw32/include/c++/5.1.0/i686-w64-mingw32
664 // /usr/i686-w64-mingw32/include/c++/5.1.0/backward
665 // /usr/i686-w64-mingw32/include
669 // /usr/include/c++/4.8/x86_64-w64-mingw32
671 // /usr/x86_64-w64-mingw32/include
674 // /usr/x86_64-w64-mingw32ucrt/sys-root/mingw/include/c++/x86_64-w64-mingw32ucrt
675 // /usr/x86_64-w64-mingw32ucrt/sys-root/mingw/include/c++/backward
676 // /usr/x86_64-w64-mingw32ucrt/sys-root/mingw/include
677 // /usr/lib/gcc/x86_64-w64-mingw32ucrt/12.2.1/include-fixed
714 StringRef GuardArgs = A->getValue(); in addClangTargetOptions()
718 // Emit CFG instrumentation and the table of address-taken functions. in addClangTargetOptions()
719 CC1Args.push_back("-cfguard"); in addClangTargetOptions()
720 } else if (GuardArgs == "cf-nochecks") { in addClangTargetOptions()
721 // Emit only the table of address-taken functions. in addClangTargetOptions()
722 CC1Args.push_back("-cfguard-no-checks"); in addClangTargetOptions()
725 << A->getSpelling() << GuardArgs; in addClangTargetOptions()
748 // https://github.com/llvm/llvm-project/issues/96899. in addClangTargetOptions()
751 CC1Args.push_back("-fno-sized-deallocation"); in addClangTargetOptions()
753 CC1Args.push_back("-fno-use-init-array"); in addClangTargetOptions()
758 A->ignoreTargetSpecific(); in addClangTargetOptions()
798 "g++-v" + GccVer.Text); in AddClangCXXStdlibIncludeArgs()
801 "g++-v" + GccVer.MajorStr + "." + GccVer.MinorStr); in AddClangCXXStdlibIncludeArgs()
803 llvm::sys::path::append(CppIncludeBases[6], "include", in AddClangCXXStdlibIncludeArgs()
804 "g++-v" + GccVer.MajorStr); in AddClangCXXStdlibIncludeArgs()
828 // - don't use any potentially unrelated gcc to influence what triple to use. in testTriple()
850 Archs.emplace_back("i686"); in adjustTriple()