Explorar o código

Augment gcc's debugging capabilities

Note: icc just ignores the function, and thus falls back on -O0, which
should be fine enough.

Thanks PAW!
Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
9863cc3a61
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      configure.ac

+ 4 - 0
configure.ac

@@ -1944,6 +1944,10 @@ if test x$enable_debug = xyes; then
 	FCFLAGS="$FCFLAGS -O0"
 	enable_spinlock_check=yes
 	if test x$GCC = xyes; then
+		CFLAGS="$CFLAGS -Og"
+		CXXFLAGS="$CXXFLAGS -Og"
+		FFLAGS="$FFLAGS -Og"
+		FCFLAGS="$FCFLAGS -Og"
 		if test x$starpu_windows != xyes ; then
 			if test x$enable_fstack_protector_all = xyes ; then
 			   CFLAGS="$CFLAGS -fstack-protector-all"