mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Correct way of setting maybe_unsused on labels
This commit is contained in:
		
							parent
							
								
									051b234df6
								
							
						
					
					
						commit
						cbb6887ac8
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -679,16 +679,14 @@ with open(outfile, "w") as f: | |||
|             print("#undef subpattern", file=f) | ||||
| 
 | ||||
|             print("", file=f) | ||||
|             print("rollback_label:", file=f) | ||||
|             print("    YS_MAYBE_UNUSED;", file=f) | ||||
|             print("YS_MAYBE_UNUSED rollback_label:;", file=f) | ||||
| 
 | ||||
|             if len(block["fcode"]): | ||||
|                 print("#define accept do { accept_cnt++; on_accept(); } while(0)", file=f) | ||||
|                 print("#define finish do { rollback = -1; goto finish_label; } while(0)", file=f) | ||||
|                 for line in block["fcode"]: | ||||
|                     print("  " + line, file=f) | ||||
|                 print("finish_label:", file=f) | ||||
|                 print("    YS_MAYBE_UNUSED;", file=f) | ||||
|                 print("YS_MAYBE_UNUSED finish_label:;", file=f) | ||||
|                 print("#undef accept", file=f) | ||||
|                 print("#undef finish", file=f) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue