summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/dependency-gen.c
Commit message (Collapse)AuthorAgeFilesLines
* [clang][test][NFC] Use more widely supported sanitizer for file dependency testsJan Korous2020-01-141-6/+6
| | | | | | | | The tests aren't concerned at all by the actual sanitizer - only by blacklist being reported as a dependency. We're unfortunately limited by platform support for any particular sanitizer but we can at least use one that is widely supported. Post-commit review: https://reviews.llvm.org/D72729
* Revert "Reland "[clang] Report sanitizer blacklist as a dependency in cc1""Jan Korous2019-11-081-0/+17
| | | | This reverts commit cae4a28864f4e8a55920e2b94e2cd43617902dec.
* Reland "[clang] Report sanitizer blacklist as a dependency in cc1"Jan Korous2019-11-081-17/+0
| | | | This reverts commit 3182027282c59c51d5080d83365917fccd695854.
* Reland "[clang] Report sanitizer blacklist as a dependency in cc1"Jan Korous2019-11-081-0/+17
| | | | This reverts commit 9b8413ac6e56e7a6e0ba884773d13bcf9414bd43.
* Revert "Revert "Revert "[clang] Report sanitizer blacklist as a dependency ↵Abel Kocsis2019-11-081-17/+0
| | | | | | in cc1""" This reverts commit 3182027282c59c51d5080d83365917fccd695854.
* Revert "Revert "[clang] Report sanitizer blacklist as a dependency in cc1""Abel Kocsis2019-11-081-0/+17
| | | | This reverts commit 6b45e1bc11e91ea7b57a6ab1c19461a86dba33f8.
* Revert "[clang] Report sanitizer blacklist as a dependency in cc1"Jeremy Morse2019-11-081-17/+0
| | | | | | | | | | This reverts commit 03b84e4f6d0e1c04f22d69cc445f36e1f713beb4. This breaks dfsan tests with a linking failure, in for example this build: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/24312 Reverting this patch locally makes those tests succeed.
* [clang] Report sanitizer blacklist as a dependency in cc1Jan Korous2019-11-071-0/+17
| | | | | | | | Previously these were reported from the driver which blocked clang-scan-deps from getting the full set of dependencies from cc1 commands. Also the default sanitizer blacklist that is added in driver was never reported as a dependency. I introduced -fsanitize-system-blacklist cc1 option to keep track of which blacklists were user-specified and which were added by driver and clang -MD now also reports system blacklists as dependencies. Differential Revision: https://reviews.llvm.org/D69290
* Print correctly dependency paths on WindowsDavid Bolvansky2018-09-131-5/+5
| | | | | | | | | | | | | | | | | | | Summary: Before: main.o: main.c ../include/lib\test.h After: main.o: main.c ../include/lib/test.h Fixes PR38877 Reviewers: zturner Subscribers: xbolva00, cfe-commits Differential Revision: https://reviews.llvm.org/D51847 llvm-svn: 342139
* Move test input file into same directory as test. NFCRichard Trieu2018-05-081-1/+1
| | | | llvm-svn: 331706
* [CFI] Force LLVM to die if the implicit blacklist files cannot be found.Peter Collingbourne2018-05-071-1/+1
| | | | | | | | | | | | | | Currently LLVM CFI tries to use an implicit blacklist file, currently in /usr/lib64/clang/<version>/share. If the file is not there, LLVM happily continues, which causes CFI to add checks to files/functions that are known to fail, generating binaries that fail. This CL causes LLVM to die (I hope) if it can't find these implicit blacklist files. Patch by Caroline Tice! Differential Revision: https://reviews.llvm.org/D46403 llvm-svn: 331674
* Re-apply r267784, r267824 and r267830.Peter Collingbourne2016-04-281-1/+1
| | | | | | I have updated the compiler-rt tests. llvm-svn: 267903
* Revert r267784, r267824 and r267830.Benjamin Kramer2016-04-281-1/+1
| | | | | | | | | | It makes compiler-rt tests fail if the gold plugin is enabled. Revert "Rework interface for bitset-using features to use a notion of LTO visibility." Revert "Driver: only produce CFI -fvisibility= error when compiling." Revert "clang/test/CodeGenCXX/cfi-blacklist.cpp: Exclude ms targets. They would be non-cfi." llvm-svn: 267871
* Rework interface for bitset-using features to use a notion of LTO visibility.Peter Collingbourne2016-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bitsets, and the compiler features they rely on (vtable opt, CFI), only have visibility within the LTO'd part of the linkage unit. Therefore, only enable these features for classes with hidden LTO visibility. This notion is based on object file visibility or (on Windows) dllimport/dllexport attributes. We provide the [[clang::lto_visibility_public]] attribute to override the compiler's LTO visibility inference in cases where the class is defined in the non-LTO'd part of the linkage unit, or where the ABI supports calling classes derived from abstract base classes with hidden visibility in other linkage units (e.g. COM on Windows). If the cross-DSO CFI mode is enabled, bitset checks are emitted even for classes with public LTO visibility, as that mode uses a separate mechanism to cause bitsets to be exported. This mechanism replaces the whole-program-vtables blacklist, so remove the -fwhole-program-vtables-blacklist flag. Because __declspec(uuid()) now implies [[clang::lto_visibility_public]], the support for the special attr:uuid blacklist entry is removed. Differential Revision: http://reviews.llvm.org/D18635 llvm-svn: 267784
* Remove test cases, which rely on the default sanitizer blacklists.Ivan Krasin2015-08-131-5/+0
| | | | | | | | | | | | | | Summary: The default blacklists may vary across different architectures and configurations. It was not wise to include into http://reviews.llvm.org/D11968 Reviewers: chapuni, pcc Subscribers: cfe-commits, pcc Differential Revision: http://reviews.llvm.org/D12021 llvm-svn: 244985
* clang/test/Frontend/dependency-gen.c: Add explicit -target x86_64-linux-gnu ↵NAKAMURA Takumi2015-08-131-2/+2
| | | | | | for -fsanitize. llvm-svn: 244970
* Disable failing check in bots from r244867.Yaron Keren2015-08-131-1/+0
| | | | llvm-svn: 244869
* Add sanitizer blacklists to the rules generated with -M/-MM/-MD/-MMD.Ivan Krasin2015-08-131-1/+10
| | | | | | | | | | | | | | | | | | | Summary: Clang sanitizers, such as AddressSanitizer, ThreadSanitizer, MemorySanitizer, Control Flow Integrity and others, use blacklists to specify which types / functions should not be instrumented to avoid false positives or suppress known failures. This change adds the blacklist filenames to the list of dependencies of the rules, generated with -M/-MM/-MD/-MMD. This lets CMake/Ninja recognize that certain C/C++/ObjC files need to be recompiled (if a blacklist is updated). Reviewers: pcc Subscribers: rsmith, honggyu.kim, pcc, cfe-commits Differential Revision: http://reviews.llvm.org/D11968 llvm-svn: 244867
* Remove shell requirements from tests that use 'cd'Reid Kleckner2015-03-021-1/+0
| | | | | | | | Modules and Tooling tests in particular tend to want to change the cwd, so we were missing test coverage in this area on Windows. It should now be easier to write such portable tests. llvm-svn: 231029
* test/Frontend/dependency-gen.c: Relax expressions for Win32 host (mingw msys).NAKAMURA Takumi2011-11-171-4/+4
| | | | llvm-svn: 144887
* Revert r134898, "test/Frontend/dependency-gen.c: Mark XFAIL: mingw due to ↵NAKAMURA Takumi2011-07-111-4/+0
| | | | | | | | PR10331. to appease mingw-target (and non-mingw-host) builds. PR10331 is still alive I suppose. llvm-svn: 134931
* test/Frontend/dependency-gen.c: Mark XFAIL: mingw due to PR10331.NAKAMURA Takumi2011-07-111-0/+4
| | | | llvm-svn: 134898
* Fix up dependency file name printing to more closely match that of gcc, ↵Eli Friedman2011-07-081-13/+21
| | | | | | | | including fixing a nasty recent regression that could make us print "/foo.h" with a command-line including "-I ./". rdar://problem/9734352 llvm-svn: 134728
* test: Add the feature "shell". Frontend/dependency-gen.c would be executable ↵NAKAMURA Takumi2011-02-281-1/+2
| | | | | | | | with shell. The feature "shell" is implemented in llvm/test. llvm-svn: 126646
* Tweak this test a bit further to make it easier on grep. Who knows whatChandler Carruth2011-02-241-4/+5
| | | | | | characters get dropped into the regular expression from %t. llvm-svn: 126361
* Clean up the CMake test execution by nuking this directory before we tryChandler Carruth2011-02-231-0/+2
| | | | | | | | | | | | to create it. Lit doesn't apparently clean up test directories effectively, and so this broke randomly on subsequent runs. Also XFAIL the test on windows, as there's not much hope for these commands doing the right thing there. Paired with Nick Lewycky. llvm-svn: 126344
* Preserve what the user passed to -include when emitting .d files. Fixes PR8974!Nick Lewycky2011-02-231-0/+7
| | | | llvm-svn: 126334
* Update tests to use %clang instead of 'clang', and forcibly disable use of 'Daniel Dunbar2009-12-151-2/+2
| | | | | | | clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). llvm-svn: 91460
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-5/+5
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* Don't run anything other than the compiler in these tests.Daniel Dunbar2009-11-051-2/+2
| | | | llvm-svn: 86134
* Fix tests to not depend on /dev/null existing.Daniel Dunbar2009-11-031-4/+5
| | | | llvm-svn: 85908
* Change these tests to not depend as much on the name of the input.Daniel Dunbar2009-07-251-1/+1
| | | | llvm-svn: 77057
* Fix -MD with no -MT when -o is specified (and fix test case).Daniel Dunbar2009-03-301-1/+1
| | | | llvm-svn: 68042
* Driver: Support -M and -MM.Daniel Dunbar2009-03-301-2/+4
| | | | | | | | - Not particularly elegant, but my hand is forced by gcc. Also, tweak -ccc-print-bindings output. llvm-svn: 68027
* Improve dependency file support.Daniel Dunbar2009-03-301-3/+3
| | | | | | | | | | | | - Rip out various bits of logic from clang-cc's dependency file gen, force driver to provide instead. - -MD output now goes to proper location <rdar://problem/6723948> clang -MD puts dep file in /tmp with wrong name - -M and -MM still don't work correctly. llvm-svn: 68022
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Rename lib/Driver (etc) to lib/Frontend in prep for the *actual*Daniel Dunbar2009-03-021-0/+5
driver taking lib/Driver. llvm-svn: 65811
OpenPOWER on IntegriCloud