diff options
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index b40b0db..233ff6d 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3265,6 +3265,14 @@ gimplify_parameters (void) { local = create_tmp_var (type, get_name (parm)); DECL_IGNORED_P (local) = 0; + /* If PARM was addressable, move that flag over + to the local copy, as its address will be taken, + not the PARMs. */ + if (TREE_ADDRESSABLE (parm)) + { + TREE_ADDRESSABLE (parm) = 0; + TREE_ADDRESSABLE (local) = 1; + } } else { |