summaryrefslogtreecommitdiff
path: root/gcc/var-tracking.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-06 11:37:36 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2012-07-06 11:37:36 +0000
commit89952baf89164cbb1859ef6ae6db71dcc8a709d6 (patch)
tree9fcc811f111eb60cad9a818816d0cece2a9ef7ab /gcc/var-tracking.c
parent686d491a041f813b4fa6691008f11062bd6fc091 (diff)
downloadgcc-89952baf89164cbb1859ef6ae6db71dcc8a709d6.tar.gz
PR debug/53820
* var-tracking.c (vt_add_function_parameter): Convert internal_arg_pointer into arg_pointer-based address even without DRAP. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189326 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/var-tracking.c')
-rw-r--r--gcc/var-tracking.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c
index 66ce35a0095..5288c284227 100644
--- a/gcc/var-tracking.c
+++ b/gcc/var-tracking.c
@@ -9327,14 +9327,11 @@ vt_add_function_parameter (tree parm)
if (GET_MODE (decl_rtl) == BLKmode || GET_MODE (incoming) == BLKmode)
return;
- /* If there is a DRAP register, rewrite the incoming location of parameters
- passed on the stack into MEMs based on the argument pointer, as the DRAP
- register can be reused for other purposes and we do not track locations
- based on generic registers. But the prerequisite is that this argument
- pointer be also the virtual CFA pointer, see vt_initialize. */
+ /* If there is a DRAP register or a pseudo in internal_arg_pointer,
+ rewrite the incoming location of parameters passed on the stack
+ into MEMs based on the argument pointer, so that incoming doesn't
+ depend on a pseudo. */
if (MEM_P (incoming)
- && stack_realign_drap
- && arg_pointer_rtx == cfa_base_rtx
&& (XEXP (incoming, 0) == crtl->args.internal_arg_pointer
|| (GET_CODE (XEXP (incoming, 0)) == PLUS
&& XEXP (XEXP (incoming, 0), 0)