Commit fbb9502
committed
Support C17, C23 standards with goto-cc
We previously added the necessary language features in the C front end,
but failed to permit selection of these standards in goto-cc.
Also, GCC >= 11, Clang >= 17, and Visual Studio >= 2022 support
C23-style attributes irrespective of the configured language standard.
So let's accept these in our C front end whenever operating in these
modes.
Fixes: #86711 parent e88ed5f commit fbb9502
File tree
4 files changed
+41
-1
lines changed- regression/ansi-c/c23_attributes1
- src
- ansi-c
- goto-cc
4 files changed
+41
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
903 | 912 | | |
| 913 | + | |
904 | 914 | | |
905 | 915 | | |
906 | 916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
651 | 665 | | |
652 | 666 | | |
653 | 667 | | |
| |||
0 commit comments