[patch][pr22217] Use the most recent decl for mangling

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Jan 22 16:43:49 PST 2015

On 22 January 2015 at 15:49, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
>> It is also a tentative definition in the corresponding case with
>> __attribute__((section)). In that case, both GCC and Clang silently
>> ignore the attribute.
> That is not what I am seeing with gcc. Given
> int pr22217_foo;
> int *b = &pr22217_foo;
> extern int pr22217_foo __attribute__((section("zed")));

The above works even in c++ and with foo being initialized:

.section zed,"aw", at progbits
.align 4
.type pr22217_foo, @object
.size pr22217_foo, 4
.long 42

I tested gcc 4.9.2 and current trunk (r220018).


More information about the cfe-commits mailing list