[all-commits] [llvm/llvm-project] 128f7d: [Lex] Use line markers in preprocessed assembly pr...

john-brawn-arm via All-commits all-commits at lists.llvm.org
Tue Mar 7 08:21:28 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 128f7dac82ea4b996ddfd0db86edfdac4013b1da
      https://github.com/llvm/llvm-project/commit/128f7dac82ea4b996ddfd0db86edfdac4013b1da
  Author: John Brawn <john.brawn at arm.com>
  Date:   2023-03-07 (Tue, 07 Mar 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/lib/Lex/PPDirectives.cpp
    A clang/test/Preprocessor/directives_asm.S
    A clang/test/Preprocessor/macro_redefined.S

  Log Message:
  -----------
  [Lex] Use line markers in preprocessed assembly predefines file

GNU line marker directives are not recognised when preprocessing
assembly files, meaning they can't be used in the predefines file
meaning macros defined on the command line are reported as being
built-in.

Change this to permit line markers but only in the predefines file,
so we can correctly report command line macros as coming from the
command line.

Differential Revision: https://reviews.llvm.org/D145397




More information about the All-commits mailing list