[cfe-dev] Is __attribute(weak) supposed to fail?

Kelly W wilsonkk at shaw.ca
Sat Jul 12 04:04:14 PDT 2008


Hey Eric,

There is no bug filed for this, that I could see. 

I did get libxml2 to compile without pthread support and 'make tests' worked
(though I am apparently missing some test xml files...but at least there
were no fatal errors and 'testapi' seemed fine excluding pthread tests).

So my question on '__attribute(weak)' still stands, but at least I could get
around it.

Thanks,
K.Wilson




-----Original Message-----
From: Eric Christopher [mailto:echristo at apple.com] 
Sent: Saturday, July 12, 2008 1:39 AM
To: Kelly W
Cc: cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] Is __attribute(weak) supposed to fail?


On Jul 11, 2008, at 11:07 PM, Kelly W wrote:

> Hello all,
>
> Just wondering if '__attribute(weak)' is supposed to fail in the  
> Verifier due to it not being supported at this point for Linux? I  
> checked around with Google and looked through the code a little.I  
> can see weak support converted to objc_gc(weak) for Darwin and  
> Solaris, but nothing for Linux. I was compiling libxml2 and the  
> Verifier didn't like '__attribute(weak);' for an extern function  
> declaration, so I thought I would ask.
>

Hunh. It shouldn't be too hard to support - is there a bug for it? If  
it's supported in some way (objc_gc? weird.) on darwin it should be  
easy to support on linux.

-eric=
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.4.8/1547 - Release Date: 7/11/2008
6:05 PM




More information about the cfe-dev mailing list