This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
-g and -fvar-tracking
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Cc: Don Breazeal <donb at codesourcery dot com>
- Date: Mon, 23 Apr 2018 22:15:57 -0600
- Subject: -g and -fvar-tracking
Can somebody remind me why using -g doesn't also enable -fvar-tracking
by default? At least for -g2, which is supposed to emit debug
information about local variables? It seems kind of counterintuitive to
me that specifying a -O option enables a pass to collect better debug
information but specifying -g to request debuggable code doesn't. :-S
-Sandra