Configuring for debug info

Torbjorn Granlund tg at
Tue Nov 18 21:11:23 CET 2003

Kevin Ryde <user42 at> writes:

  We quietly dropped -g since on the riscs -O2 rearranges code so much
  as to make it almost undebuggable anyway.
Worse, -g quietly turns of optimization for many compilers.

  >   ./configure --enable-maintainer-mode --enable-assert \
  >      CFLAGS="-g -O2 -fomit-frame-pointer -mcpu=athlon -march=athlon"
  Yep, if you want those extra flags too.
Except that -fomit-frame-pointer will make debugging practically
impossible for many platforms.


More information about the gmp-devel mailing list