Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flang][preprocessor] Change handling of macros in text from Fortran … #108113

Merged
merged 1 commit into from
Sep 12, 2024

Commits on Sep 10, 2024

  1. [flang][preprocessor] Change handling of macros in text from Fortran …

    …INCLUDE lines
    
    The compiler current treats an INCLUDE line as essentially a synonym
    for a preprocessing #include directive.  The causes macros that have
    been defined at the point where the INCLUDE line is processed to be
    replaced within the text of the included file.
    
    This behavior is surprising to users who expect an INCLUDE line
    to be expanded into its contents *after* preprocessing has been
    applied to the original source file, with no further macro
    expansion.
    
    Change INCLUDE line processing to use a fresh instance of Preprocessor
    containing no macro definitions except _CUDA in CUDA Fortran compilations
    and, if the original file was being preprocessed, the standard definitions
    of __FILE__, __LINE__, and so forth.
    klausler committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    9b080da View commit details
    Browse the repository at this point in the history