mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	gcc build fixes
This commit is contained in:
		
							parent
							
								
									cfe0817697
								
							
						
					
					
						commit
						397ae5b697
					
				
					 1 changed files with 15 additions and 10 deletions
				
			
		| 
						 | 
					@ -48,6 +48,7 @@
 | 
				
			||||||
#include <unordered_map>
 | 
					#include <unordered_map>
 | 
				
			||||||
#include <unordered_set>
 | 
					#include <unordered_set>
 | 
				
			||||||
#include <initializer_list>
 | 
					#include <initializer_list>
 | 
				
			||||||
 | 
					#include <stdexcept>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <sstream>
 | 
					#include <sstream>
 | 
				
			||||||
#include <fstream>
 | 
					#include <fstream>
 | 
				
			||||||
| 
						 | 
					@ -124,6 +125,8 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
YOSYS_NAMESPACE_BEGIN
 | 
					YOSYS_NAMESPACE_BEGIN
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Note: All headers included in hashlib.h must be included
 | 
				
			||||||
 | 
					// outside of YOSYS_NAMESPACE before this or bad things will happen.
 | 
				
			||||||
#ifdef HASHLIB_H
 | 
					#ifdef HASHLIB_H
 | 
				
			||||||
#  undef HASHLIB_H
 | 
					#  undef HASHLIB_H
 | 
				
			||||||
#  include "kernel/hashlib.h"
 | 
					#  include "kernel/hashlib.h"
 | 
				
			||||||
| 
						 | 
					@ -165,6 +168,7 @@ using RTLIL::Cell;
 | 
				
			||||||
using RTLIL::Module;
 | 
					using RTLIL::Module;
 | 
				
			||||||
using RTLIL::Design;
 | 
					using RTLIL::Design;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace hashlib {
 | 
				
			||||||
	template<> struct hash_ops<RTLIL::Wire*> : hash_obj_ops {};
 | 
						template<> struct hash_ops<RTLIL::Wire*> : hash_obj_ops {};
 | 
				
			||||||
	template<> struct hash_ops<RTLIL::Cell*> : hash_obj_ops {};
 | 
						template<> struct hash_ops<RTLIL::Cell*> : hash_obj_ops {};
 | 
				
			||||||
	template<> struct hash_ops<RTLIL::Module*> : hash_obj_ops {};
 | 
						template<> struct hash_ops<RTLIL::Module*> : hash_obj_ops {};
 | 
				
			||||||
| 
						 | 
					@ -176,6 +180,7 @@ template<> struct hash_ops<const RTLIL::Cell*> : hash_obj_ops {};
 | 
				
			||||||
	template<> struct hash_ops<const RTLIL::Module*> : hash_obj_ops {};
 | 
						template<> struct hash_ops<const RTLIL::Module*> : hash_obj_ops {};
 | 
				
			||||||
	template<> struct hash_ops<const RTLIL::Design*> : hash_obj_ops {};
 | 
						template<> struct hash_ops<const RTLIL::Design*> : hash_obj_ops {};
 | 
				
			||||||
	template<> struct hash_ops<const RTLIL::Monitor*> : hash_obj_ops {};
 | 
						template<> struct hash_ops<const RTLIL::Monitor*> : hash_obj_ops {};
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void memhasher_on();
 | 
					void memhasher_on();
 | 
				
			||||||
void memhasher_off();
 | 
					void memhasher_off();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue