]> git.ipfire.org Git - thirdparty/gcc.git/commit
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:36:59 +0000 (16:36 +0100)
commita039ddac6d248f06184f1eece05d1da513917d69
tree325831491e6a250d8d12bcbacb84ca8ffaf7c5d8
parent7c641985fd8b75cd741ac0c98c1924629d45cb34
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.

(cherry picked from commit 8d76c007afe4c70f51fd56b0e5b89522de5de61f)
gcc/fortran/trans.c