[Patch, fortran, RFC] PR 40958 Reduce size of module files

Thomas Koenig tkoenig@netcologne.de
Mon Nov 28 20:29:00 GMT 2011


Hello world,

the testing of the test patch I submitted earlier (Thanks Salvatore and
Joost!) has shown a performance increase, so here is a formal
submission.  No test case because this patch is not supposed to
change anything, just make module reading a bit more efficient.

Regression-tested on x86_64-unknown-linux-gnu.  OK for trunk?

	Thomas

2011-11-28  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR fortran/40958
         * module.c (prev_module_line):  New variable.
         (prev_module_column):  New variable.
         (prev_character):  New variable.
         (module_char):  Update the new variables.
         (module_unget_char):  New function.
         (parse_string):  Use module_unget_char.
         (parse_integer):  Likewise.
         (parse_name):  Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p2a.diff
Type: text/x-patch
Size: 2138 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111128/74c37c5b/attachment.bin>


More information about the Fortran mailing list