[cfe-dev] [patch] -fno-constant-cfstrings issue
jahanian
fjahanian at apple.com
Tue Jul 5 09:01:34 PDT 2011
Thanks. Patch checked in r134414.
- fariborz
On Jul 5, 2011, at 12:56 AM, Jean-Daniel Dupas wrote:
> Hello,
>
> I have a problem trying to compile unload able bundle with clang. According to CoreFoundation reference (1), when writing such bundle, you should the -fno-constant-cfstrings option to prevent issue with dandling CFStringRef pointer.
>
> Actually, clang completely ignore this flag and always define the __CONSTANT_CFSTRINGS__ macro, used by the CoreFoundation header to conditionally generate constant strings.
>
> I attached a patch to not define this macro when -fno-constant-cfstrings is passed to the compiler.
>
>
>
> (1): The last section of this page http://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/AccessingaBundlesContents/AccessingaBundlesContents.html
>
>
> -- Jean-Daniel
>
>
>
> <constcfstrings.patch>_______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list