https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118823

            Bug ID: 118823
           Summary: get__Pragma_string calls get_token_no_padding but
                    instead could use _cpp_get_token_no_padding
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: compile-time-hog, internal-improvement
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: pinskia at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

get__Pragma_string calls get_token_no_padding like:

  paren = get_token_no_padding (pfile);
  if (paren->type == CPP_EOF)
    _cpp_backup_tokens (pfile, 1);


But this is faster to do just:
  paren = _cpp_get_token_no_padding (pfile);

_cpp_get_token_no_padding does not "eat" the EOF but rather keeps it there.

Reply via email to