This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
- From: "marc.glisse at normalesup dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 1 Aug 2011 16:20:45 +0000
- Subject: [Bug libstdc++/1773] __cplusplus defined to 1, should be 199711L
- Auto-submitted: auto-generated
- References: <bug-1773-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773
--- Comment #100 from Marc Glisse <marc.glisse at normalesup dot org> 2011-08-01 16:17:25 UTC ---
Created attachment 24884
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24884
Alter mangling of std::tm and std::ldiv_t
And I attach a patch that mangles std::tm as ::tm, and the same for ldiv_t. Of
course it would also require div_t, lconv, and whatever else a grep will turn
up. Note that I don't understand half of the macros in the patch (everything to
do with TYPE is likely useless) but it seems to work.
Note also that I don't answer the question of whether we want to do such a
thing (which should allow compatibility with older gcc and can be reverted at
the next ABI break), or even do it just for solaris.
(if anyone wants to try, you'll likely hit PR 49914, which can be worked around
by s/abs/llabs/ wherever it complains)