[flang-commits] [flang] 26f83b4 - [flang] Fixed unittest build issue with older gcc.

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Wed Jan 18 19:21:05 PST 2023


Author: Slava Zakharin
Date: 2023-01-18T19:20:57-08:00
New Revision: 26f83b43b16a6efde8769d4bdf12779ffd8ef874

URL: https://github.com/llvm/llvm-project/commit/26f83b43b16a6efde8769d4bdf12779ffd8ef874
DIFF: https://github.com/llvm/llvm-project/commit/26f83b43b16a6efde8769d4bdf12779ffd8ef874.diff

LOG: [flang] Fixed unittest build issue with older gcc.

I am getting this error with `check-flang`:
```
ld.lld: error: undefined symbol: mlir::SuccessorRange::SuccessorRange(mlir::Operation*)
>>> referenced by Operation.h:549 (/llvm-project/llvm/../mlir/include/mlir/IR/Operation.h:549)
>>>               CMakeFiles/FlangRuntimeTests.dir/Allocatable.cpp.o:(mlir::Operation::getSuccessors())
```

The buildbots are okay, so I guess it has something to do with
gcc-9 that I am using.

Differential Revision: https://reviews.llvm.org/D142069

Added: 
    

Modified: 
    flang/unittests/Runtime/Allocatable.cpp

Removed: 
    


################################################################################
diff  --git a/flang/unittests/Runtime/Allocatable.cpp b/flang/unittests/Runtime/Allocatable.cpp
index bba501e40a71d..919279a245f17 100644
--- a/flang/unittests/Runtime/Allocatable.cpp
+++ b/flang/unittests/Runtime/Allocatable.cpp
@@ -9,13 +9,6 @@
 #include "flang/Runtime/allocatable.h"
 #include "gtest/gtest.h"
 #include "tools.h"
-#include "flang/Common/Fortran.h"
-#include "flang/ISO_Fortran_binding.h"
-#include "flang/Optimizer/Builder/FIRBuilder.h"
-#include "flang/Optimizer/Support/InitFIR.h"
-#include "flang/Optimizer/Support/KindMapping.h"
-#include "flang/Runtime/descriptor.h"
-#include "flang/Runtime/memory.h"
 
 using namespace Fortran::runtime;
 


        


More information about the flang-commits mailing list