Clang failing lots of FrontendC* tests

I managed to convince check-lit to run the FrontendC tests using clang
by applying the following patch to my config.status (yes, it's a hack,
and you'll have to change the paths to match your system):

frontend_tests.out (220 KB)

Our view on the FrontendC* tests is that they’re testing very specific behaviors of llvm-gcc that we don’t necessarily care about for Clang. At some point, I’d like to look at the failures to convince myself that these tests aren’t uncovering real bugs, but even when I do… I’d rather move the useful tests in Clang’s regression test suite.

  • Doug

Thanks for looking. There are some interesting tests in FrontendC for
how llvm's backend handles debug information, for example, that aren't
covered by the rest of the test suite. (I know because they found a
bug in one of my recent changes that wasn't caught by the rest of the
suite.) Possibly we should just compile all of the FrontendC* tests to
IR and add them elsewhere in the test suite?

I managed to convince check-lit to run the FrontendC tests using clang
by applying the following patch to my config.status (yes, it's a hack,
and you'll have to change the paths to match your system):

=========
661,664c661,664
< s,@LLVMGCCCOMMAND@,|#_!!_#|llvm-gcc,g
< s,@LLVMGXXCOMMAND@,|#_!!_#|llvm-g++,g
< s,@LLVMGCC@,|#_!!_#|,g
< s,@LLVMGXX@,|#_!!_#|,g
---

s,@LLVMGCCCOMMAND@,|#_!!_#|/Users/jyasskin/src/llvm/clang/install/bin/clang,g

s,@LLVMGXXCOMMAND@,|#_!!_#|/Users/jyasskin/src/llvm/clang/install/bin/clang++,g

s,@LLVMGCC@,|#_!!_#|/Users/jyasskin/src/llvm/clang/install/bin/clang,g

s,@LLVMGXX@,|#_!!_#|/Users/jyasskin/src/llvm/clang/install/bin/clang++,g

675,676c675,676
< s,@LLVMGCCDIR@,|#_!!_#|,g
< s,@LLVMGCC_LANGS@,|#_!!_#|,g
---

s,@LLVMGCCDIR@,|#_!!_#|/Users/jyasskin/src/llvm/clang/install/bin,g

s,@LLVMGCC_LANGS@,|#_!!_#|c\,c++\,objc\,obj-c++,g

========

The following 110 tests failed, although the LLVMC ones don't look
like real failures, and some of the ObjC ones are just warnings. I
intend to just ignore these failures in my own testing, but I thought
you guys might like to know. The full check-lit output is attached.

Our view on the FrontendC* tests is that they're testing very specific
behaviors of llvm-gcc that we don't necessarily care about for Clang. At
some point, I'd like to look at the failures to convince myself that these
tests aren't uncovering real bugs, but even when I do... I'd rather move the
useful tests in Clang's regression test suite.

Thanks for looking. There are some interesting tests in FrontendC for
how llvm's backend handles debug information, for example, that aren't
covered by the rest of the test suite. (I know because they found a
bug in one of my recent changes that wasn't caught by the rest of the
suite.) Possibly we should just compile all of the FrontendC* tests to
IR and add them elsewhere in the test suite?

I think that makes sense. Perhaps Daniel has an opinion on this?