This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/22083] [3.4/4.0/4.1 Regression] TARGET_C99_FUNCTIONS is wrongly defined on AIX 5.1


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-17 19:05 -------
(In reply to comment #4)
> If you have C++ code that uses std::sqrt(float) and build a dynamically linked
> executable on AIX 5.1, then bring it over to AIX 5.2, it won't run, because
> sqrtf() is now in libm, but not in libstdc++.  This doesn't seem to be a problem
> on other platforms (for example, a program compiled on Solaris 8, against
> sqrtf() in libstdc++, runs fine on Solaris 10, with sqrtf() in libm), but on AIX
> the dynamic loader looks for a symbol only in a specific library.  I am guessing
> it's a difference between COFF and ELF?

That is not a bug, you cannot do that as libstdc++ is not forward compatiable, this is also happens on 
Darwin (Mac OS X).

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22083


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]