Index: flang/lib/Lower/Bridge.cpp =================================================================== --- flang/lib/Lower/Bridge.cpp +++ flang/lib/Lower/Bridge.cpp @@ -313,12 +313,7 @@ [&](Fortran::lower::pft::FunctionLikeUnit &f) { lowerFunc(f); }, [&](Fortran::lower::pft::ModuleLikeUnit &m) { lowerMod(m); }, [&](Fortran::lower::pft::BlockDataUnit &b) {}, - [&](Fortran::lower::pft::CompilerDirectiveUnit &d) { - setCurrentPosition( - d.get().source); - mlir::emitWarning(toLocation(), - "ignoring all compiler directives"); - }, + [&](Fortran::lower::pft::CompilerDirectiveUnit &d) {}, }, u); } @@ -2003,7 +1998,7 @@ } void genFIR(const Fortran::parser::CompilerDirective &) { - mlir::emitWarning(toLocation(), "ignoring all compiler directives"); + // TODO } void genFIR(const Fortran::parser::OpenACCConstruct &acc) { Index: flang/test/Lower/compiler-directive.f90 =================================================================== --- flang/test/Lower/compiler-directive.f90 +++ /dev/null @@ -1,13 +0,0 @@ -! RUN: bbc %s -o - 2>&1 | FileCheck %s -! RUN: %flang_fc1 -emit-fir %s -o - 2>&1 | FileCheck %s - -! CHECK: ignoring all compiler directives - -MODULE test_mod - CONTAINS - SUBROUTINE foo() - REAL :: var - !DIR$ VECTOR ALIGNED - var = 1. - END SUBROUTINE foo -END MODULE test_mod