[PATCH, v3] Fortran: detect blanks within literal constants in free-form mode [PR92805]

Harald Anlauf anlauf@gmx.de
Sat Jul 30 18:32:38 GMT 2022

Hi Thomas,

Am 30.07.22 um 09:46 schrieb Thomas Koenig via Fortran:
> Hi Harald,
>> This introduces the helper function gfc_match_next_char, which is
>> your second option.
> I would be a little bit concerned about compilation times
> with the additional function call overhead.

the function it replaces (gfc_match_char) is also in a different
file, thus the overhead is at least neutral.  Given that the latter
has an additional call to gfc_gobble_whitespace(), we actually get

> The function is used only in one place; would it make
> sense to put it into primary.cc and declare it static?

Can do that.

> Best regards
>      Thomas


More information about the Gcc-patches mailing list