X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=gmqcc.ini.example;h=20680d372771cc2d0972e8508fa3632ff2cc5849;hp=acff3b3daaecadc5868f60b1363d71b4c5f8040d;hb=4d4851e17903a5e8b66a2eef027354594e391559;hpb=2ebf571129a3c7a13a49ca12294fb70bef50a62d diff --git a/gmqcc.ini.example b/gmqcc.ini.example index acff3b3..20680d3 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 @@ -537,6 +559,14 @@ 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 + [optimizations] #Some general peephole optimizations. For instance the code `a = b