|
[
Permlink
| « Hide
]
Martin Sebor added a comment - 29/Aug/07 09:20 PM
This should be pretty straightforward assuming the feature works the same way in aCC as in MSVC and assuming there are no serious bugs in it. Yeah, right. Scheduled for 4.2.1.
gcc also implements the _declspec(dll{im,ex}port) feature as an alternative to __attribute_((dll{ex,im}port):
http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Function-Attributes.html We might as well implement this enhancement across all platforms. The gcc implements dllexport/dllimport attributes only on Windows and Symbian target platforms (i.e. Cygwin)..
Affects all released versions.
Assigned to Farid. The gmake.log file is attached.
A couple of comments/questions on the patch:
1. Since the name of the attribute is dllexport the name of the config macro should be _RWSTD_NO_DLLEXPORT (no space between DLL and EXPORT). Since the gcc 3.4.4 on Cygwin doesn't exports the template instantiations, declared as __declspec(dllexport), and the latest for this moment gcc 4.2.3 still doesn't correctly exports the virtual function tables (I've got the internal compiler error during linking the strstream example against stdcxx library) I think that __declspec(dllexport/dllimport) feature is unusable on gcc/Cygwin. Also I can't verify this feature on HP aCC because the HP testdrive servers still has the buggy A.06.14 version.
So I deferring this issue to the later time. Makes sense. Did you happen to create a test case for the gcc ICE?
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||