How to compile the -O0 version
The default compiled version (gcc's optimization level) is O2
, and it seems that the O0
version is not provided. --enable-code-coverage
seems to have the O0
parameter, but it does not work.
Modify the configure.ac file? It seems that there is no parameter (O2
). I don't know how your parameter came from and how it was generated.
Can you tell me how to compile the O0
version?
I only find O2
in the file of libtool.m4
# LT_PROG_GCJ
# -----------
AC_DEFUN([LT_PROG_GCJ],
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
[AC_CHECK_TOOL(GCJ, gcj,)
test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
AC_SUBST(GCJFLAGS)])])[]dnl
])