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: V3 PATCH: numeric_limits<> support, fix PR/3865


On Tue, Sep 03, 2002 at 03:01:34PM +0200, Gabriel Dos Reis wrote:
> What happens for 1.0f/0.0f on systems that do not have infinity?

z.c:1: error: initializer element is not constant

:-(

> Good.  Does the compiler does that no matter how the optimization
> level is?

Yes, but apparently that does us no good because of the above.

> That is fine by me.  I just have to point out that C and C++ don't
> follow the same standards: while C seems to promote its own modified
> version of IEEE-754, C++ follows LIA-1.  The immediate consequence is
> that we have to define consistent numeric_limits<> that reflect the
> implementation characteristics on all the supported plateform, not
> just on IEEE-754 plateforms.

I am not familiar with the specifics of LIA-1, so I do not at
the moment have an opinion on what should be done.

> Great! I vote for it.  Is there anything I can do (apart from changing
> the two lines)?

Dunno yet.  I believe I've got the float.h change finished;
I'll post the patch for it in a moment.



r~


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