mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 02:39:40 +01:00 
			
		
		
		
	* Fixed incorrect condition (a linked list always has at least one dummy element) which was causing every unit to have a threadvar table, regardless of actual presence of threadvars. For units without code, this was causing creation of .o files which aren't necessary otherwise.
git-svn-id: trunk@23201 -
This commit is contained in:
		
							parent
							
								
									30f96442ca
								
							
						
					
					
						commit
						1116bc3542
					
				@ -705,7 +705,7 @@ implementation
 | 
			
		||||
       if assigned(current_module.globalsymtable) then
 | 
			
		||||
         current_module.globalsymtable.SymList.ForEachCall(@AddToThreadvarList,ltvTable);
 | 
			
		||||
       current_module.localsymtable.SymList.ForEachCall(@AddToThreadvarList,ltvTable);
 | 
			
		||||
       if ltvTable.first<>nil then
 | 
			
		||||
       if not ltvTable.Empty then
 | 
			
		||||
        begin
 | 
			
		||||
          s:=make_mangledname('THREADVARLIST',current_module.localsymtable,'');
 | 
			
		||||
          { end of the list marker }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user