This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch] tic4x support in gas
Hi,
With this change, the tic4x target for tic4x is complete and works
together with gcc. A testsuite is underways as well...
Svein
gas/Changelog:
2002-10-17 Svein E. Seldal <Svein.Seldal@solidas.com>
* expr.c (operand): Added support for n.nn flonums
Index: gas/expr.c
===================================================================
RCS file: /prosjekt/gnu/src/src/gas/expr.c,v
retrieving revision 1.45
diff -c -3 -p -r1.45 expr.c
*** gas/expr.c 20 Sep 2002 00:58:39 -0000 1.45
--- gas/expr.c 17 Oct 2002 20:50:40 -0000
*************** operand (expressionP)
*** 828,837 ****
{
char *s;
! /* Check for a hex constant. */
for (s = input_line_pointer; hex_p (*s); s++)
;
! if (*s == 'h' || *s == 'H')
{
--input_line_pointer;
integer_constant (0, expressionP);
--- 828,837 ----
{
char *s;
! /* Check for a hex or float constant. */
for (s = input_line_pointer; hex_p (*s); s++)
;
! if (*s == 'h' || *s == 'H' || *input_line_pointer == '.')
{
--input_line_pointer;
integer_constant (0, expressionP);
*************** operand (expressionP)
*** 1079,1084 ****
--- 1079,1094 ----
else
expressionP->X_add_number = ! expressionP->X_add_number;
}
+ else if (expressionP->X_op == O_big
+ && expressionP->X_add_number <= 0
+ && c == '-')
+ {
+ /* Negative flonum (eg, -1.000e0). */
+ if (generic_floating_point_number.sign == '+')
+ generic_floating_point_number.sign = '-';
+ else if (generic_floating_point_number.sign == 'P')
+ generic_floating_point_number.sign = 'N';
+ }
else if (expressionP->X_op != O_illegal
&& expressionP->X_op != O_absent)
{