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: Patch for PR 14635 (regression: nan not in C90)


On Thu, Mar 18, 2004 at 06:06:50PM -0700, Roger Sayle wrote:
> Why is it an issue for nan(whatever) to expand to a constant at
> compiler-time, any more than it is for sqrt(4.0) for example.

	float x = nanf("");

should not compile, whereas

	float x = __builtin_nanf("");

must, given the promises we've made to libc about __builtin_nanf("")
being an appropriate definition of the NAN macro.


r~


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