[patch][pr14974] Change what #pragma weak matches

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Feb 25 16:49:52 PST 2013


On 25 February 2013 19:23, John McCall <rjmccall at apple.com> wrote:
> On Feb 22, 2013, at 7:52 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
>> Gcc applies a pragma weak to a decl if it matches the mangled name. So
>> far clang applies it if matches the "plain" name. This patches tries
>> to be a compromise. We don't expose the mangling itself, but we only
>> check for matches in decls that are not mangled.
>
> Is the decision whether to mangle a symbol actually ABI-dependent?

Looks like it is. At least given

int foo;
static int bar;

On Itanium we mangle bar, on MS we mangle foo.

> John.

Cheers,
Rafael




More information about the cfe-commits mailing list