]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Merge branch 'master' into cooking
authorWolfgang Bumiller <wry.git@bumiller.com>
Sun, 26 Jan 2014 11:38:00 +0000 (12:38 +0100)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sun, 26 Jan 2014 11:38:00 +0000 (12:38 +0100)
1  2 
doc/gmqcc.1

diff --combined doc/gmqcc.1
index 7ee54c01cab814924cbc17f04fa67e903cd08b86,557995e02fb6c628011fd583f87c5349a7b8ddf5..b5d39eab4578f22ed95fade87d0162def05e98e1
@@@ -335,15 -335,9 +335,15 @@@ ignored for both cases
  When compiling original QuakeWorld QC there are instances where
  code overwrites constants. This is considered an error, however
  for QuakeWorld to compile it needs to be treated as a warning
- instead, as such this warning only works when -std=qcc.
+ instead, as such this warning only works when \-std=qcc.
  .It Fl W Ns Cm directive-inmacro
  Warn about the use of preprocessor directives inside macros.
 +.It Fl W Ns Cm builtins
 +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.
  .El
  .Sh COMPILE FLAGS
  .Bl -tag -width Ds
@@@ -397,26 -391,6 +397,26 @@@ only the first component will be 0, whi
  the first to of the global return value. This behavior is odd and
  relying on it should be discouraged, and thus is not supported by
  gmqcc.
 +.It Fl f Ns Cm ftepp-mathdefs
 +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:
 +.Bd -literal -offset indent
 +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
 +.Ed
  .It Fl f Ns Cm relaxed-switch
  Allow switch cases to use non constant variables.
  .It Fl f Ns Cm short-logic