This is the mail archive of the gcc-patches@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]

Re: another baby step - namespace adjustments


Zack Weinberg wrote:
It's not that it's not portable enough, it's that jumping through the
necessary hoops to link cc1 against libm.so when and only when this is
required is too much trouble.

Why not just always link with libm?


I think we should fix gcc to always link with libm on targets that have one. It is a historical accident that -lm is optional. Now that ISO C requires a sqrt to exist, it is silly to require users to specify yet another option (-lm) in order to compile valid ISO C programs. This would also eliminate some of the bug reports we get.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com



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