File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ FLAGS := \
21
21
-I$(JULIAHOME ) /deps/valgrind
22
22
ifneq ($(USEMSVC ) , 1)
23
23
FLAGS += -Wall -Wno-strict-aliasing -fno-omit-frame-pointer -fvisibility=hidden -fno-common \
24
- -Wpointer-arith -Wundef
24
+ -Wno-comment - Wpointer-arith -Wundef
25
25
ifeq ($(USEGCC ) ,1) # GCC bug #25509 (void)__attribute__((warn_unused_result))
26
26
FLAGS += -Wno-unused-result
27
27
endif
Original file line number Diff line number Diff line change @@ -7583,6 +7583,22 @@ extern "C" void jl_dump_llvm_debugloc(void *v)
7583
7583
llvm_dump ((DebugLoc*)v);
7584
7584
}
7585
7585
7586
+ namespace llvm {
7587
+ class MachineBasicBlock ;
7588
+ class MachineFunction ;
7589
+ raw_ostream& operator <<(raw_ostream &OS, const MachineBasicBlock &MBB);
7590
+ void printMIR (raw_ostream &OS, const MachineFunction &MF);
7591
+ }
7592
+ extern " C" void jl_dump_llvm_mbb (void *v)
7593
+ {
7594
+ errs () << *(llvm::MachineBasicBlock*)v;
7595
+ }
7596
+ extern " C" void jl_dump_llvm_mfunction (void *v)
7597
+ {
7598
+ llvm::printMIR (errs (), *(llvm::MachineFunction*)v);
7599
+ }
7600
+
7601
+
7586
7602
extern void jl_write_bitcode_func (void *F, char *fname) {
7587
7603
std::error_code EC;
7588
7604
raw_fd_ostream OS (fname, EC, sys::fs::F_None);
Original file line number Diff line number Diff line change 17
17
#endif
18
18
19
19
#define LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING 0
20
+
21
+ #if defined(__GNUC__ ) && (__GNUC__ >= 9 )
22
+ // Added in GCC 9, this warning is annoying
23
+ #pragma GCC diagnostic ignored "-Winit-list-lifetime"
24
+ #endif
You can’t perform that action at this time.
0 commit comments