Skip to content

Commit 05129bc

Browse files
NinaRannsiains
authored andcommitted
adding missing files
1 parent 4565d29 commit 05129bc

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

gcc/c-family/c.opt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1926,9 +1926,12 @@ Enum(p2900_semantic) String(observe) Value(4)
19261926
EnumValue
19271927
Enum(p2900_semantic) String(quick_enforce) Value(5)
19281928

1929+
EnumValue
1930+
Enum(p2900_semantic) String(noexcept_enforce) Value(6)
1931+
19291932
fcontract-evaluation-semantic=
19301933
C++ Joined RejectNegative Enum(p2900_semantic) Var(flag_contract_evaluation_semantic) Init (3)
1931-
-fcontract-evaluation-semantic=[ignore|observe|enforce|quick_enforce] Select the contract evaluation semantic (defaults to enforce).
1934+
-fcontract-evaluation-semantic=[ignore|observe|enforce|quick_enforce|noexcept_enforce] Select the contract evaluation semantic (defaults to enforce).
19321935

19331936
fcontract-checks-outlined
19341937
C++ Var(flag_contract_checks_outlined) Init(1)

gcc/cp/contracts.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ enum contract_level
3737
CCS_MAYBE -> observe
3838
CCS_NEVER -> enforce
3939
CCS_QUICK -> quick_enforce
40+
CCS_NOEXCEPT_ENFORCE -> noexcept_enforce
4041
*/
4142

4243
enum contract_semantic
@@ -48,7 +49,8 @@ enum contract_semantic
4849
CCS_ENFORCE = CCS_NEVER,
4950
CCS_MAYBE = 4,
5051
CCS_OBSERVE = CCS_MAYBE,
51-
CCS_QUICK = 5
52+
CCS_QUICK = 5,
53+
CCS_NOEXCEPT_ENFORCE
5254
};
5355

5456
/* True if the contract is unchecked. */
@@ -99,7 +101,8 @@ enum contract_evaluation_semantic {
99101
CES_IGNORE = 1,
100102
CES_OBSERVE = 2,
101103
CES_ENFORCE = 3,
102-
CES_QUICK = 4
104+
CES_QUICK = 4,
105+
CES_NOEXCEPT_ENFORCE =5
103106
};
104107

105108
enum constract_detection_mode {

0 commit comments

Comments
 (0)