Browse Source

use -O1 when debugging, otherwise gcc ignores -Wuninitialized

rlar 15 years ago
parent
commit
4f5d6aa770
  1. 8
      ChangeLog
  2. 2
      configure.ac

8
ChangeLog

@ -1,3 +1,11 @@
2011-08-07 Robert Larice
* configure.ac :
use -O1 when debugging, otherwise gcc ignores -Wuninitialized
this is temporary, and certainly will confuse users of gdb
obviously somewhere around gcc version 4.4 the necessity to have
enable optimization for detecting uninitialized variables was dropped.
stable Debian's gcc is a 4.4 and still needs -O1 ...
2011-08-06 Dietmar Warning
* bsim4v4/b4v4set.c: fix missing model parameter defaults
* b4check.c, b4v4check.c, b4v5check.c: add "4.x" as a short form for version

2
configure.ac

@ -211,7 +211,7 @@ if test "$enable_debug" = "no"; then
else
AC_DEFINE(NGDEBUG,1,[Compile with debug info])
if test "x$GCC" = "xyes"; then
CFLAGS="$ext_CFLAGS -g -O0 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion"
CFLAGS="$ext_CFLAGS -g -O1 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wold-style-definition -Wredundant-decls -Wconversion"
else
CFLAGS="$ext_CFLAGS -g"
fi

Loading…
Cancel
Save