Xref: news2.mv.net comp.os.msdos.djgpp:6774 From: alaric AT abwillms DOT demon DOT co DOT uk (Alaric B. Williams) Newsgroups: comp.os.msdos.djgpp Subject: __attribute__ ((nocommon)) Date: Sat, 03 Aug 1996 15:01:39 GMT Lines: 27 Message-ID: <839084385.8973.4@abwillms.demon.co.uk> NNTP-Posting-Host: abwillms.demon.co.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In my work on putting things in sections, I was told by info that to prevent uninitialised variables going into bss, I would have to use said attribute - but it doesn't work! I was testing my locking library (please note: the extern definitions for the section start/end labels should be chars not ints - change that if you're playing with it), and I found that uninitialised C variables with nocommon didn't go between the section markers! Initialising same with zero did the trick... What /is/ it with __attribute__s? -> section (fixeable) -> packed -> nocommon Do any of them work???? Regards, ABW -- I have become... Comfortably numb... Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk http://www.hardcafe.co.uk/Alaric/