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.
This commit is contained in:
parent
bebf930dd2
commit
8d76c007af
1 changed files with 3 additions and 0 deletions
|
@ -97,6 +97,9 @@ create_var_debug_raw (tree type, const char *prefix)
|
|||
|
||||
t = build_decl (input_location, VAR_DECL, get_identifier (name_buf), type);
|
||||
|
||||
/* Not setting this causes some regressions. */
|
||||
DECL_ARTIFICIAL (t) = 1;
|
||||
|
||||
/* We want debug info for it. */
|
||||
DECL_IGNORED_P (t) = 0;
|
||||
/* It should not be nameless. */
|
||||
|
|
Loading…
Add table
Reference in a new issue