diff options
author | Per Bothner <per@bothner.com> | 2004-03-19 16:06:43 -0800 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2004-03-19 16:06:43 -0800 |
commit | 678fccd5b912d28283ff3b357e9027d535ccf5fc (patch) | |
tree | 81b26bedb428becef6997360d2987ec56967efc2 /gcc/java/gcj.texi | |
parent | d0aa5f10b39e7e75365dab4bc2ae4388f3c1c43e (diff) | |
download | gcc-678fccd5b912d28283ff3b357e9027d535ccf5fc.zip gcc-678fccd5b912d28283ff3b357e9027d535ccf5fc.tar.gz gcc-678fccd5b912d28283ff3b357e9027d535ccf5fc.tar.bz2 |
* gcj.texi (Code Generation): Document new flags and assert defaults.
From-SVN: r79715
Diffstat (limited to 'gcc/java/gcj.texi')
-rw-r--r-- | gcc/java/gcj.texi | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi index 21c12ee..26edf69 100644 --- a/gcc/java/gcj.texi +++ b/gcc/java/gcj.texi @@ -431,6 +431,27 @@ to initialize static classes upon their first use (this optimization isn't carried out if @code{-C} was specified.) When compiling to native code, @code{-fno-optimize-static-class-initialization} will turn this optimization off, regardless of the optimization level in use. + +@item --disable-assertions[=@var{class-or-package}] +Don't include code for checking assertions in the compiled code. +If @code{=@var{class-or-package}} is missing disables assertion code +generation for all classes, unless overrideen by a more +specific @code{--enable-assertions} flag. +If @var{class-or-package} is a class name, only disables generating +assertion checks within the named class or its inner classes. +If @var{class-or-package} is a package name, disables generating +assertion checks within the named package or a subpackage. + +By default, assertions are enabled when generating class files +or when not optimizaing, and disabled when generating optimized binaries. + +@item --enable-assertions[=@var{class-or-package}] +Generates code to check assertions. The option is perhaps misnamed, +as you still need to turn on assertion checking at run-time, +and we don't support any easy way to do that. +So this flag isn't very useful yet, except to partially override +@code{--disable-assertions}. + @end table |