Commit f1ab880
committed
C/C++ instr: consider other compiler switches for preprocessing
We must launch the preprocessing command with all of the switches that
can influence the preprocessing of the file. We used to consider macro
definition / undefinition and the C/C++ standard set by the -std switch
but there are more switches than that (the list is unfortunately
probably not exhaustive): -fno-rtti (do not include runtime type
information) and all of the warnings switches which can influence the
preprocessing through the __has_warning macro.1 parent 1e381f6 commit f1ab880
File tree
5 files changed
+74
-31
lines changed- testsuite/tests/instr-cov/C++/109-pp-switches
- tools/gnatcov
5 files changed
+74
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
92 | 88 | | |
93 | 89 | | |
94 | 90 | | |
| |||
2524 | 2520 | | |
2525 | 2521 | | |
2526 | 2522 | | |
2527 | | - | |
| 2523 | + | |
| 2524 | + | |
2528 | 2525 | | |
2529 | 2526 | | |
2530 | 2527 | | |
2531 | 2528 | | |
2532 | 2529 | | |
2533 | 2530 | | |
2534 | 2531 | | |
2535 | | - | |
2536 | | - | |
2537 | 2532 | | |
2538 | 2533 | | |
2539 | 2534 | | |
| |||
2549 | 2544 | | |
2550 | 2545 | | |
2551 | 2546 | | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
| 2547 | + | |
2555 | 2548 | | |
2556 | 2549 | | |
2557 | 2550 | | |
2558 | 2551 | | |
2559 | 2552 | | |
2560 | 2553 | | |
2561 | 2554 | | |
2562 | | - | |
2563 | | - | |
| 2555 | + | |
2564 | 2556 | | |
2565 | 2557 | | |
2566 | 2558 | | |
| |||
4532 | 4524 | | |
4533 | 4525 | | |
4534 | 4526 | | |
4535 | | - | |
4536 | | - | |
| 4527 | + | |
| 4528 | + | |
4537 | 4529 | | |
4538 | 4530 | | |
4539 | 4531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | | - | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
479 | 481 | | |
480 | | - | |
481 | | - | |
482 | | - | |
| 482 | + | |
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| 641 | + | |
| 642 | + | |
641 | 643 | | |
642 | | - | |
643 | | - | |
644 | | - | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
645 | 647 | | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
646 | 656 | | |
647 | 657 | | |
648 | 658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
556 | | - | |
557 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
| |||
0 commit comments