[cfe-commits] review only please: allow #pragma weak to refer to undeclared identifier

Ryan Flynn parseerror at gmail.com
Tue Jul 21 22:18:53 PDT 2009


i'll commit-after-approval, in that unlikely event.

this is a fairly ugly hack to address this bug:

http://llvm.org/bugs/show_bug.cgi?id=3679

it has the upside of getting FreeBSD's libc and others closer to compiling.

it has the downside that it is fairly ugly and also introduces an
issue whereby we don't error on incompatible declarations with weak
attributes, an example is given in the test file.

constructive criticism appreciated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pragma-weak-undeclared.patch
Type: text/x-diff
Size: 6100 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090722/e275faee/attachment.patch>


More information about the cfe-commits mailing list