Can Q_GLOBAL_STATIC replace KStaticDelete ?

Thiago Macieira thiago at
Tue Jan 23 07:00:33 GMT 2007

Alexander Neundorf wrote:
>Sure ? I didn't know that. All versions of gcc ? In all optimization
> levels ? For variables of which types ?

Sure? Yes.
In all optimisation levels? At least -O0 does.
For variables of which typess? All those that can be  statically 
initialisable (no constructors).
Which versions? I don't know.

I noticed that it initialised to BSS when I was testing Matthias's latest 
code: both the atomic pointer and the bool were placed on the .bss, even 

  Thiago Macieira  -  thiago (AT) - thiago (AT)
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list