diff options
author | Steve Baird <baird@adacore.com> | 2022-07-25 16:03:10 -0700 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-09-06 09:14:21 +0200 |
commit | 1dbaf0d99c37024dcfafa73366c32a206e8f21a2 (patch) | |
tree | 368f72ea73cb64e1b13f848a2fcfc344317310f4 /gcc/cppdefault.cc | |
parent | 96c20bf1e971f1fb41b4d6852888cc0dea9db009 (diff) | |
download | gcc-1dbaf0d99c37024dcfafa73366c32a206e8f21a2.zip gcc-1dbaf0d99c37024dcfafa73366c32a206e8f21a2.tar.gz gcc-1dbaf0d99c37024dcfafa73366c32a206e8f21a2.tar.bz2 |
[Ada] Temporarily simplify legality checks for Inox case statements
INOX (which is enabled via -gnatX) supports composite case-statement selectors.
As a temporary measure, simplify the coverage-related compile-time checks
for such case statements via two changes: an others choice is always
required for such a case statement, and no legality checks relating to
overlapping of case choices are performed.
gcc/ada/
* sem_case.adb: Define a new Boolean constant,
Simplified_Composite_Coverage_Rules, initialized to True. Setting
this constant to True has two effects: 1- Representative value
sets are not fully initialized - this is done to avoid capacity
problems, as well as for performance. 2- In
Check_Case_Pattern_Choices, the only legality check performed is a
check that a "when others =>" choice is present.
Diffstat (limited to 'gcc/cppdefault.cc')
0 files changed, 0 insertions, 0 deletions