mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Added "used" attribute to entries in yosys_cover_list
http://www.reddit.com/r/yosys/comments/2kw479/fyi_clang_350_build_error/cltgwyc http://llvm.org/bugs/show_bug.cgi?id=19474
This commit is contained in:
		
							parent
							
								
									c5dbb1aa28
								
							
						
					
					
						commit
						89be7bf527
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -90,7 +90,7 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi
 | 
			
		|||
#ifdef YOSYS_ENABLE_COVER
 | 
			
		||||
 | 
			
		||||
#define cover(_id) do { \
 | 
			
		||||
    static CoverData __d __attribute__((section("yosys_cover_list"), aligned(1))) = { __FILE__, __FUNCTION__, _id, __LINE__, 0 }; \
 | 
			
		||||
    static CoverData __d __attribute__((section("yosys_cover_list"), aligned(1), used)) = { __FILE__, __FUNCTION__, _id, __LINE__, 0 }; \
 | 
			
		||||
    __d.counter++; \
 | 
			
		||||
} while (0)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue