diff options
author | Thomas Koenig <tkoenig@gcc.gnu.org> | 2020-12-15 17:10:37 +0100 |
---|---|---|
committer | Thomas Koenig <tkoenig@gcc.gnu.org> | 2020-12-15 17:10:37 +0100 |
commit | 662de36bf798c8c470b382015283fe3a439cdd8f (patch) | |
tree | 0900c00b3911e3d501b1224034e403f807575859 /gcc/fortran/invoke.texi | |
parent | 4e096e0ff8c428572353a519cdf8726ef3f70f73 (diff) | |
download | gcc-662de36bf798c8c470b382015283fe3a439cdd8f.zip gcc-662de36bf798c8c470b382015283fe3a439cdd8f.tar.gz gcc-662de36bf798c8c470b382015283fe3a439cdd8f.tar.bz2 |
Add the -fdebug-aux-vars flag to debug variables generated by Fortran.
gcc/fortran/ChangeLog:
PR fortran/90207
* invoke.texi: Document -fdebug-aux-vars.
* lang.opt: Add -fdebug-aux-vars.
* trans.c (MAX_PREFIX_LEN): New macro.
(create_var_debug_raw): New function.
(gfc_create_var_np): Call create_var_debug_raw if
flag_debug_aux_vars is set.
Diffstat (limited to 'gcc/fortran/invoke.texi')
-rw-r--r-- | gcc/fortran/invoke.texi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 8bdc8a6..069ccd3 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -160,7 +160,7 @@ and warnings}. @item Debugging Options @xref{Debugging Options,,Options for debugging your program or GNU Fortran}. @gccoptlist{-fbacktrace -fdump-fortran-optimized -fdump-fortran-original @gol --fdump-fortran-global -fdump-parse-tree -ffpe-trap=@var{list} @gol +-fdebug-aux-vars -fdump-fortran-global -fdump-parse-tree -ffpe-trap=@var{list} @gol -ffpe-summary=@var{list} } @@ -1219,6 +1219,15 @@ change between releases. This option may also generate internal compiler errors for features which have only recently been added. This option is deprecated; use @code{-fdump-fortran-original} instead. +@item -fdebug-aux-vars +@opindex @code{fdebug-aux-vars} +Renames internal variables created by the gfortran front end and makes +them accessible to a debugger. The name of the internal variables then +start with upper-case letters followed by an underscore. This option is +useful for debugging the compiler's code generation together with +@code{-fdump-tree-original} and enabling debugging of the executable +program by using @code{-g} or @code{-ggdb3}. + @item -fdump-fortran-global @opindex @code{fdump-fortran-global} Output a list of the global identifiers after translating into |