Commit 7bd59be
committed
[flang] Don't retain FIXED/FREE compiler directives
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.1 parent 06fb26c commit 7bd59be
File tree
3 files changed
+24
-19
lines changed- flang
- lib/Parser
- test/Preprocessing
3 files changed
+24
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 100 | + | |
111 | 101 | | |
112 | 102 | | |
113 | 103 | | |
| |||
324 | 314 | | |
325 | 315 | | |
326 | 316 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
331 | 322 | | |
332 | 323 | | |
333 | 324 | | |
| |||
370 | 361 | | |
371 | 362 | | |
372 | 363 | | |
373 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
374 | 367 | | |
375 | 368 | | |
376 | 369 | | |
377 | 370 | | |
378 | 371 | | |
| 372 | + | |
379 | 373 | | |
380 | | - | |
381 | 374 | | |
382 | 375 | | |
383 | 376 | | |
| |||
1774 | 1767 | | |
1775 | 1768 | | |
1776 | 1769 | | |
1777 | | - | |
| 1770 | + | |
1778 | 1771 | | |
1779 | 1772 | | |
| 1773 | + | |
1780 | 1774 | | |
1781 | 1775 | | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
1782 | 1779 | | |
1783 | 1780 | | |
1784 | 1781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments