forked from OSchip/llvm-project
				
			[msan] Disable tail call optimization in msan rtl.
This should give us better error stack traces on the bots, in particular, for https://bugs.llvm.org/show_bug.cgi?id=40162 llvm-svn: 350080
This commit is contained in:
		
							parent
							
								
									f227621036
								
							
						
					
					
						commit
						faef9b77de
					
				| 
						 | 
					@ -38,6 +38,11 @@ endif()
 | 
				
			||||||
# Prevent clang from generating libc calls.
 | 
					# Prevent clang from generating libc calls.
 | 
				
			||||||
append_list_if(COMPILER_RT_HAS_FFREESTANDING_FLAG -ffreestanding MSAN_RTL_CFLAGS)
 | 
					append_list_if(COMPILER_RT_HAS_FFREESTANDING_FLAG -ffreestanding MSAN_RTL_CFLAGS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Tracking down https://bugs.llvm.org/show_bug.cgi?id=40162
 | 
				
			||||||
 | 
					if(CMAKE_SYSTEM_NAME MATCHES "Linux")
 | 
				
			||||||
 | 
					  list(APPEND MSAN_RTL_CFLAGS -fno-optimize-sibling-calls)
 | 
				
			||||||
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set(MSAN_RUNTIME_LIBRARIES)
 | 
					set(MSAN_RUNTIME_LIBRARIES)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Static runtime library.
 | 
					# Static runtime library.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue