llvm-project
52afb8dd - [flang] Don't retain FIXED/FREE compiler directives (#160780)

Commit
3 days ago
[flang] Don't retain FIXED/FREE compiler directives (#160780) Some old code in the prescanner, antedating the current -E output mechanisms, retains the !DIR$ FIXED and !DIR$ FREE directives in the input, and will even generate them to append to the scanned source from source and include files to restore the fixed/free source form distinction. But these directives have not been needed since the -E output generator began generating source form insensitive output, and they can confuse the parser's error recovery when the appended directives follow the END statement. Change their handling so that they're read and respected by the prescanner but no longer retained in either the -E output or the cooked character stream passed on to the parser. Fixes a regression reported by @danielcchen after PR 159834.
Author
Parents
Loading