[fpc-devel] [patch] fixes check for unused threadvars

2009-04-19 Thread Sergei Gorelkin
Hello, Attached is a one-line fix that makes programs a couple of bytes smaller by preventing creation of empty threadvar tables when threadvars are not actually used. The condition "Assigned(TAsmList.First)" always evaluates to True because the list contains at least one marker item. Regard

Re: [fpc-devel] [patch] fixes check for unused threadvars

2009-04-22 Thread Sergei Gorelkin
Sergei Gorelkin wrote: Attached is a one-line fix that makes programs a couple of bytes smaller by preventing creation of empty threadvar tables when threadvars are not actually used. The condition "Assigned(TAsmList.First)" always evaluates to True because the list contains at least one marke

Re: [fpc-devel] [patch] fixes check for unused threadvars

2009-04-25 Thread Sergei Gorelkin
Sergei Gorelkin пишет: Whoops, not that easy. It appears that Tresourcestrings.CreateResourceStringData does not create new section in current_asmdata.asmlists[al_const] and therefore it depends on the state in which that asmlist was left by the previously executed code. Hence, compiling a un