PATCH for c++/30112 (#pragma redefine_extname and extern "C" in std)
Jason Merrill
jason@redhat.com
Fri Jul 22 21:08:00 GMT 2011
Apparently the Solaris C library headers play games with #pragma
redefine_extname such that we need the pragma to affect extern "C"
declarations in namespaces such as std, not just declarations at file scope.
To implement this, I added another C-family hook "c_linkage_bindings"
that returns a list of C-linkage decls with the name in question. In
C/ObjC this just returns identifier_global_value, but it is more
involved in C++.
Tested x86_64-pc-linux-gnu, applied to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 30112.patch
Type: text/x-patch
Size: 9857 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110722/f58ec4ca/attachment.bin>
More information about the Gcc-patches
mailing list