https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91758

            Bug ID: 91758
           Summary: Clang fails to pass validation after r261089
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: lukebenes at hotmail dot com
  Target Milestone: ---

With gcc 9 or newer clang will build but fail up to 150 validation tests. 

The failures first started after:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=261089
     gimple-ssa-store-merging.c: Include gimple-fold.h.

While subsequent gcc tweaks resulted in different tests failing, this commit
appears to be the genesis of all of the failures.

Steps to Reproduce:
1. git clone https://github.com/llvm/llvm-project.git
2. cd llvm-project
3. mkdir build && cd build
4. CC=gcc CXX=g++ cmake -DLLVM_ENABLE_PROJECTS=clang -DCMAKE_BUILD_TYPE=Release
-G "Unix Makefiles" ../llvm 
5. make check-all -j4

Expected Results:
All tests pass

Actual Results:
4-150 tests will fails such as 
    Clang :: CodeGen/arm-fp16-arguments.c
    Clang :: CodeGen/lanai-regparm.c
    Clang :: CodeGen/ppc64-complex-parms.c
    Clang :: CodeGen/ppc64-complex-return.c
    Clang :: CodeGen/ppc64-vector.c

Reply via email to