[clang] de9338f - Revert "Reland "[flang][cuda][driver] Make sure flang does not switch to cc1 (#104613)""
Valentin Clement via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 16 13:19:38 PDT 2024
Author: Valentin Clement
Date: 2024-08-16T13:19:26-07:00
New Revision: de9338fc625d8d67c18032492b2e743cd53f4b37
URL: https://github.com/llvm/llvm-project/commit/de9338fc625d8d67c18032492b2e743cd53f4b37
DIFF: https://github.com/llvm/llvm-project/commit/de9338fc625d8d67c18032492b2e743cd53f4b37.diff
LOG: Revert "Reland "[flang][cuda][driver] Make sure flang does not switch to cc1 (#104613)""
This reverts commit af81b4f9f98f6ac89f876637f065d6525e374468.
Added:
Modified:
clang/lib/Driver/Types.cpp
flang/test/Driver/cuda-option.f90
Removed:
################################################################################
diff --git a/clang/lib/Driver/Types.cpp b/clang/lib/Driver/Types.cpp
index 3de45b00b4d00f..2b9b391c19c9fd 100644
--- a/clang/lib/Driver/Types.cpp
+++ b/clang/lib/Driver/Types.cpp
@@ -170,9 +170,6 @@ bool types::isAcceptedByFlang(ID Id) {
case TY_LLVM_IR:
case TY_LLVM_BC:
return true;
- case TY_PP_CUDA:
- case TY_CUDA:
- return true;
}
}
diff --git a/flang/test/Driver/cuda-option.f90 b/flang/test/Driver/cuda-option.f90
index 3fe5fd22cc984b..562f8683b0ff7d 100644
--- a/flang/test/Driver/cuda-option.f90
+++ b/flang/test/Driver/cuda-option.f90
@@ -1,6 +1,5 @@
! Test -fcuda option
! RUN: %flang_fc1 -cpp -x cuda -fdebug-unparse %s -o - | FileCheck %s
-! RUN: %flang -cpp -fsyntax-only -x cuda %s -o -
! RUN: not %flang_fc1 -cpp %s -o - 2>&1 | FileCheck %s --check-prefix=ERROR
program main
#if _CUDA
@@ -13,4 +12,4 @@ program main
! CHECK: INTEGER :: var = 1
! CHECK: INTEGER, DEVICE :: dvar
-! ERROR: cuda-option.f90:{{.*}}:{{.*}}: error: expected end of statement
+! ERROR: cuda-option.f90:8:19: error: expected end of statement
More information about the cfe-commits
mailing list