r238389 - [omp] Re-work Clang's handling of -fopenmp and undo r237769.

İsmail Dönmez ismail at donmez.ws
Thu May 28 05:04:38 PDT 2015


Hi,

On Thu, May 28, 2015 at 4:52 AM, Chandler Carruth <chandlerc at gmail.com> wrote:
> Author: chandlerc
> Date: Wed May 27 20:52:38 2015
> New Revision: 238389
>
> URL: http://llvm.org/viewvc/llvm-project?rev=238389&view=rev
> Log:
> [omp] Re-work Clang's handling of -fopenmp and undo r237769.


This seems to break openmp tests with
-DCLANG_DEFAULT_OPENMP_RUNTIME=libiomp5 see:

 ******************** TEST 'Clang :: Driver/fopenmp.c' FAILED
********************
 Script:
 --
 /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/clang  -target
x86_64-linux-gnu -fopenmp -c
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
-### 2>&1 | /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/FileCheck
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
--check-prefix=CHECK-CC1-NO-OPENMP
 /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/clang  -target
x86_64-linux-gnu -fopenmp=libomp -c
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
-### 2>&1 | /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/FileCheck
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
--check-prefix=CHECK-CC1-OPENMP
 /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/clang  -target
x86_64-linux-gnu -fopenmp=libgomp -c
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
-### 2>&1 | /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/FileCheck
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
--check-prefix=CHECK-CC1-NO-OPENMP
 /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/clang  -target
x86_64-linux-gnu -fopenmp=libiomp5 -c
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
-### 2>&1 | /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/FileCheck
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
--check-prefix=CHECK-CC1-OPENMP
 /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/clang  -target
x86_64-linux-gnu -fopenmp
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c -o
/home/abuild/rpmbuild/BUILD/llvm/stage2/tools/clang/test/Driver/Output/fopenmp.c.tmp
-### 2>&1 | /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/FileCheck
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
--check-prefix=CHECK-LD-GOMP
 /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/clang  -target
x86_64-linux-gnu -fopenmp=libomp
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c -o
/home/abuild/rpmbuild/BUILD/llvm/stage2/tools/clang/test/Driver/Output/fopenmp.c.tmp
-### 2>&1 | /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/FileCheck
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
--check-prefix=CHECK-LD-OMP
 /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/clang  -target
x86_64-linux-gnu -fopenmp=libgomp
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c -o
/home/abuild/rpmbuild/BUILD/llvm/stage2/tools/clang/test/Driver/Output/fopenmp.c.tmp
-### 2>&1 | /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/FileCheck
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
--check-prefix=CHECK-LD-GOMP
 /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/clang  -target
x86_64-linux-gnu -fopenmp=libiomp5
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c -o
/home/abuild/rpmbuild/BUILD/llvm/stage2/tools/clang/test/Driver/Output/fopenmp.c.tmp
-### 2>&1 | /home/abuild/rpmbuild/BUILD/llvm/stage2/./bin/FileCheck
/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c
--check-prefix=CHECK-LD-IOMP5
 --
 Exit Code: 1

 Command Output (stderr):
 --
 <stdin>:4:908: error: CHECK-CC1-NO-OPENMP-NOT: string occurred!
  "/home/abuild/rpmbuild/BUILD/llvm/stage2/bin/clang-3.7" "-cc1"
"-triple" "x86_64--linux-gnu" "-emit-obj" "-mrelax-all"
"-disable-free" "-main-file-name" "fopenmp.c" "-mrelocation-model"
"static" "-mthread-model" "posix" "-mdisable-fp-elim" "-fmath-errno"
"-masm-verbose" "-mconstructor-aliases" "-munwind-tables"
"-fuse-init-array" "-target-cpu" "x86-64" "-dwarf-column-info"
"-coverage-file"
"/home/abuild/rpmbuild/BUILD/llvm/stage2/tools/clang/test/Driver/fopenmp.c"
"-resource-dir"
"/home/abuild/rpmbuild/BUILD/llvm/stage2/bin/../lib64/clang/3.7.0"
"-internal-isystem" "/usr/local/include" "-internal-isystem"
"/home/abuild/rpmbuild/BUILD/llvm/stage2/bin/../lib64/clang/3.7.0/include"
"-internal-externc-isystem" "/include" "-internal-externc-isystem"
"/usr/include" "-fdebug-compilation-dir"
"/home/abuild/rpmbuild/BUILD/llvm/stage2/tools/clang/test/Driver"
"-ferror-limit" "19" "-fmessage-length" "0" "-fopenmp"
"-mstackrealign" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-o"
"fopenmp.o" "-x" "c"
"/home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c"












                                                        ^
 /home/abuild/rpmbuild/BUILD/llvm/tools/clang/test/Driver/fopenmp.c:10:29:
note: CHECK-CC1-NO-OPENMP-NOT: pattern specified here
 // CHECK-CC1-NO-OPENMP-NOT: "-fopenmp"
                             ^

 --



More information about the cfe-commits mailing list