[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] TOK_PPNUM for asm
From: |
Sergey Korshunoff |
Subject: |
Re: [Tinycc-devel] TOK_PPNUM for asm |
Date: |
Thu, 5 May 2016 19:27:28 +0300 |
> Also, presumably there's a good reason why your patch modified 43
> lines, rather than just one, as below. What is that reason?
There may be a float numbers in assembler like 0x1eP+1 and 10e-1 but
0x1e+1 must be parsed as 0x1e +1
2016-05-05 2:12 GMT+03:00 Edmund Grimley Evans <address@hidden>:
>> > Proposed patch: handle 0x1e+1 as 0x1e +1 if (parse_flags &
>> > PARSE_FLAG_ASM_FILE)
>>
>> Please explain and justify exactly what you're trying to do. What do
>> you believe the correct definition of a pp-number is when tokenising
>> assembly? What definition does the GNU toolchain use?
>
> Also, presumably there's a good reason why your patch modified 43
> lines, rather than just one, as below. What is that reason?
>
> diff --git a/tccpp.c b/tccpp.c
> index ad35687..7dd6d36 100644
> --- a/tccpp.c
> +++ b/tccpp.c
> @@ -2766,6 +2766,7 @@ maybe_newline:
> || c == '.'
> || ((c == '+' || c == '-')
> && (t == 'e' || t == 'E' || t == 'p' || t == 'P')
> + && !(parse_flags & PARSE_FLAG_ASM_FILE)
> )))
> break;
> }
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel