Commit 9e30ee24 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Add compiler flags that should show inlined functions when enabling debug

parent d539422a
......@@ -155,6 +155,16 @@ LT_INIT
# If debugging try to show inlined functions.
if test "x$enable_debug" = "xyes"; then
# Show inlined functions.
if test "$ax_cv_c_compiler_vendor" = "gnu"; then
CFLAGS="$CFLAGS -gdwarf -fvar-tracking-assignments"
elif test "$ax_cv_c_compiler_vendor" = "intel"; then
CFLAGS="$CFLAGS -debug inline-debug-info"
# Define HAVE_POSIX_MEMALIGN if it works.
......@@ -451,7 +461,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM(
# Add warning flags by default, if these can be used. Option =error adds
# -Werror to GCC, clang and Intel. Note do this last as compiler tests may
# -Werror to GCC, clang and Intel. Note do this last as compiler tests may
# become errors, if that's an issue don't use CFLAGS for these, use an AC_SUBST().
......@@ -461,7 +471,7 @@ AC_ARG_ENABLE([compiler-warnings],
if test "$enable_warn" != "no"; then
# AX_CFLAGS_WARN_ALL does not give good warning flags for the Intel compiler
# We will do this by hand instead and only default to the macro for unknown compilers
case "$ax_cv_c_compiler_vendor" in
......@@ -475,7 +485,7 @@ if test "$enable_warn" != "no"; then
# Add a "choke on warning" flag if it exists
if test "$enable_warn" = "error"; then
case "$ax_cv_c_compiler_vendor" in
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment