X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.ini.example;h=ceacf289c3fd606f43c9532171c9161fa8d464b4;hp=acff3b3daaecadc5868f60b1363d71b4c5f8040d;hb=3e43056f5fb107bc32daacbc75084563977b404e;hpb=2ebf571129a3c7a13a49ca12294fb70bef50a62d diff --git a/gmqcc.ini.example b/gmqcc.ini.example index acff3b3..ceacf28 100644 --- a/gmqcc.ini.example +++ b/gmqcc.ini.example @@ -62,6 +62,28 @@ FTEPP_PREDEFS = false + #Enable math constant definitions. This only works in combination + #with '-fftepp' and is currently not included by '-std=fteqcc'. + #The following macros will be added: + # + # M_E + # M_LOG2E + # M_LOG10E + # M_LN2 + # M_LN10 + # M_PI + # M_PI_2 + # M_PI_4 + # M_1_PI + # M_2_PI + # M_2_SQRTPI + # M_SQRT2 + # M_SQRT1_2 + # M_TAU + + FTEPP_MATHDEFS = false + + #Allow switch cases to use non constant variables. RELAXED_SWITCH = true @@ -288,6 +310,17 @@ SORT_OPERANDS = false + #Emulate OP_STATE operations in code rather than using the instruction. + #The desired fps can be set via -state-fps=NUM, defaults to 10. + + EMULATE_STATE = false + + + #Turn on arithmetic exception tests in the compiler. In constant expressions + #which trigger exceptions like division by zero, overflow, underflow, etc, + #the following flag will produce diagnostics for what triggered that + #exception. + ARITHMETIC_EXCEPTIONS = false [warnings] #Generate a warning about variables which are declared but never @@ -537,6 +570,20 @@ DIRECTIVE_INMACRO = true + #When using a function that is not explicitly defined, the compiler + #will search its intrinsics table for something that matches that + #function name by appending "__builtin_" to it. This behaviour may + #be unexpected, so enabling this will produce a diagnostic when + #such a function is resolved to a builtin. + + BUILTINS = true + + + #When comparing an inexact value such as `1.0/3.0' the result is + #pathologically wrong. Enabling this will trigger a compiler warning + #on such expressions. + INEXACT_COMPARES = true + [optimizations] #Some general peephole optimizations. For instance the code `a = b