This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 3/4] decimal floating point support for expressions
- From: Daniel Jacobowitz <drow at false dot org>
- To: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 24 Oct 2007 16:12:08 -0400
- Subject: Re: [patch 3/4] decimal floating point support for expressions
- References: <20070920215410.062714003@br.ibm.com> <20070920215539.891263549@br.ibm.com> <20071011161645.GD22982@caradoc.them.org> <1192471932.5787.46.camel@localhost.localdomain>
On Mon, Oct 15, 2007 at 04:12:12PM -0200, Thiago Jung Bauermann wrote:
> Subject: decimal floating point support for expressions
>
> 2007-10-15 Wu Zhou <woodzltc@cn.ibm.com>
> Thiago Jung Bauermann <bauerman@br.ibm.com>
>
> * c-exp.y (YYSTYPE): Add typed_val_decfloat for decimal
> floating point in YYSTYPE union.
> (DECFLOAT) Add token and expression element handling code.
> (parse_number): Parse DFP constants, which end with suffix 'df',
> 'dd' or 'dl'. Return DECFLOAT.
> * eval.c (evaluate_subexp_standard): Call value_from_decfloat to
> handle OP_DECFLOAT.
> * expression.h (enum exp_opcode): Add an opcode (OP_DECFLOAT)
> for DFP constants.
> (union exp_element): Add decfloatconst to represent DFP
> elements, which is 16 bytes by default.
> * parse.c (write_exp_elt_decfloatcst): New function to write a
> decimal float const into the expression.
> (operator_length_standard): Set operator length for OP_DECFLOAT
> to 4.
> * parser-defs.h (write_exp_elt_decfloatcst): Prototype.
> * valarith.c (value_neg): Add code to handle the negation
> operation of DFP values.
> * value.c (value_from_decfloat): New function to get the value
> from a decimal floating point.
> * value.h (value_from_decfloat): Prototype.
This one looks OK.
--
Daniel Jacobowitz
CodeSourcery