This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fixed-point support for c++ [patch]
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Sean D'Epagnier <geckosenator at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Apr 2010 22:22:28 +0000 (UTC)
- Subject: Re: fixed-point support for c++ [patch]
- References: <s2xb9d4feda1004140829nd1d86acbi9806465417618416@mail.gmail.com>
On Wed, 14 Apr 2010, Sean D'Epagnier wrote:
> Sorry for first email, it was premature.
>
> I have two patches for gcc. The first fixes some important bugs
> within gcc for fixed point support and applies to all languages and
> targets. The second is c++ related only, and adds support to the
> parser for fixed point.
It seems likely to me that WG21 would go for a fixed-point approach
similar to that for decimal floating-point, rather than adding keywords,
if a fixed-point TR is adopted for C++ in future - have you tried a split
library/compiler approach similar to that used for decimal floating-point,
with a view to it providing implementation experience that could inform
future standardization? I'm not a C++ front-end maintainer, but
implementing something likely to differ from the approach preferred for
such C++ features by WG21 seems like a bad idea to me.
--
Joseph S. Myers
joseph@codesourcery.com