mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-23 14:14:59 -07:00
Define the behaviour of integer division by zero
This commit is contained in:
@@ -404,6 +404,11 @@ String linker_choices[Linker_COUNT] = {
|
||||
str_lit("radlink"),
|
||||
};
|
||||
|
||||
enum IntegerDivisionByZeroKind : u8 {
|
||||
IntegerDivisionByZero_Trap,
|
||||
IntegerDivisionByZero_Zero,
|
||||
};
|
||||
|
||||
// This stores the information for the specify architecture of this build
|
||||
struct BuildContext {
|
||||
// Constants
|
||||
@@ -485,6 +490,8 @@ struct BuildContext {
|
||||
bool keep_object_files;
|
||||
bool disallow_do;
|
||||
|
||||
IntegerDivisionByZeroKind integer_division_by_zero_behaviour;
|
||||
|
||||
LinkerChoice linker_choice;
|
||||
|
||||
StringSet custom_attributes;
|
||||
|
||||
Reference in New Issue
Block a user