From: Denis Davydov Date: Fri, 6 Jan 2017 19:19:41 +0000 (+0100) Subject: add a note on -Og and -O0 debug flags X-Git-Tag: v8.5.0-rc1~280^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33086098769d3c593f783a0fbfa7649c136c140e;p=dealii.git add a note on -Og and -O0 debug flags --- diff --git a/doc/readme.html b/doc/readme.html index 1b4a74681d..7f3bb705ce 100644 --- a/doc/readme.html +++ b/doc/readme.html @@ -288,6 +288,15 @@ are usually found almost instantaneously, displaying the file name and line number of where the problem occurred.

+

+ Debug mode, by default, uses the -Og flag. It promises most of the + debugging experience of -O0 but at a better performance. + This is a reasonable choice for unit tests and enables numerous asserts + within the library. Sometimes, however, one needs Debug mode to use + -O0 (e.g. GCC 6.2.0 optimizes out local variables with -Og). + This can be achieved by configuring deal.II with + -DDEAL_II_HAVE_FLAG_Og=false. +

  • Optimized mode: You will want to link with this version of