summaryrefslogtreecommitdiff
path: root/clang/test/Driver/thinlto.c
AgeCommit message (Collapse)Author
2024-10-02[clang] [Driver] Ensure we error on lto with link.exe and target ↵Max Winkler
`*-windows-msvc` on non cl driver modes (#109607) Similar to previous PRs I've done to change some `IsCLMode` checks to `isWindowsMSVCEnvironment`. I stumbled into this one accidentally last week. I did some greps and I think this is the last one for now. All the remaining `IsCLMode` checks are only valid for the cl driver mode. For the `*-windows-msvc` target MSVC link.exe and lld are supported. LTO isn't supported with MSVC link.exe and so we error when lto is enabled but MSVC link.exe is being used. However we only error if the driver mode is cl. If we are using the clang driver with the `*-windows-msvc` target then ensure an error is also emitted when LTO and MSVC link.exe are used together.
2022-06-24Revert "[Driver][test] Replace ^//$ with empty string"Fangrui Song
This reverts commit 4817b7729a1846b709ec02b98bfe11b0125f8e8f. It caused some `^/\n` and had some objection about its readability improvement.
2022-06-24[Driver][test] Replace ^//$ with empty stringFangrui Song
The convention does not add //\n. Having all RUN/CHECK lines separated by //\n makes editor movement difficult (e.g. { } in Vim).
2020-02-07[Driver][test] Refactor LLVMgold testsFangrui Song
LLVMgold.so tests are duplicated in several places. Deduplicate them. Move the tests to lto.c and lto.cu Specify -fuse-ld=bfd or -fuse-ld=gold. In a future change, if -fuse-ld=lld or CLANG_DEFAULT_LINKER=lld without -fuse-ld=, we will remove -plugin /path/to/LLVMgold.so
2017-08-22Revert "Revert "Revert "Revert "Fix LLVMgold plugin name/path for non-Linux.""""Dan Albert
With tests fixed for Windows style paths now that they are going through path canonicalization. llvm-svn: 311487
2017-08-15Revert "Revert "Revert "Fix LLVMgold plugin name/path for non-Linux."""Dan Albert
llvm-svn: 310977
2017-08-15Revert "Revert "Fix LLVMgold plugin name/path for non-Linux.""Dan Albert
Summary: Relanding https://reviews.llvm.org/D35739 which was reverted because it broke the tests on non-Linux. The tests have been fixed to be platform agnostic, and additional tests have been added to make sure that the plugin has the correct extension on each platform (%pluginext doesn't work in CHECK lines). Reviewers: srhines, pirama Reviewed By: srhines Subscribers: emaste, mehdi_amini, eraman, cfe-commits Differential Revision: https://reviews.llvm.org/D36769 llvm-svn: 310960
2015-10-15Recommit "Clang support for -flto=thin."Teresa Johnson
This recommits r250398 with fixes to the tests for bot failures. Add "-target x86_64-unknown-linux" to the clang invocations that check for the gold plugin. llvm-svn: 250455
2015-10-15Revert "Clang support for -flto=thin." (bot failures)Teresa Johnson
Rolling this back for now since there are a couple of bot failures on the new tests I added, and I won't have a chance to look at them in detail until later this afternoon. I think the new tests need some restrictions on having the gold plugin available. This reverts commit r250398. llvm-svn: 250402
2015-10-15Clang support for -flto=thin.Teresa Johnson
Summary: Add clang support for -flto=thin option, which is used to set the EmitFunctionSummary code gen option on compiles. Add -flto=full as an alias to the existing -flto. Add tests to check for proper overriding of -flto variants on the command line, and convert grep tests to FileCheck. Reviewers: dexonsmith, joker.eph Subscribers: davidxl, cfe-commits Differential Revision: http://reviews.llvm.org/D11908 llvm-svn: 250398