Set DECL_ARTIFICIAL on gfortran internal variables.
authorThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 20 Dec 2020 15:27:01 +0000 (16:27 +0100)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Sun, 20 Dec 2020 15:27:01 +0000 (16:27 +0100)
commit8d76c007afe4c70f51fd56b0e5b89522de5de61f
tree90ae7bbef6c21c05dba0b45f15de7437bbe57f6b
parentbebf930dd2b8bd94b84dee6df97bdcdf214b4a0e
Set DECL_ARTIFICIAL on gfortran internal variables.

It seems we sometimes use DECL_ARTIFICIAL as choosing between
different code paths.  In order not to make -fdebug-aux-vars
do different things, set DECL_ARTIFICIAL on the variables to
avoid these different code paths (and the corresponding
regressions).

gcc/fortran/ChangeLog:

* trans.c (create_var_debug_raw): Set DECL_ARTIFICIAL
on variables.
gcc/fortran/trans.c