From 08ba48938f0d653579eed049746b21508f8a93b5 Mon Sep 17 00:00:00 2001
From: aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Wed, 6 Feb 2002 07:40:38 +0000
Subject: [PATCH] * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to
 parameters passed by invisible reference.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49539 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog | 5 +++++
 gcc/dbxout.c  | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cd004a578f6d..501e2c599412 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
+
+	* dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
+	passed by invisible reference.
+
 2002-02-05  Richard Henderson  <rth@redhat.com>
 
 	* config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index f352745bddff..b449e1302841 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -2630,6 +2630,10 @@ dbxout_parms (parms)
 	      
 	    FORCE_TEXT;
 	    fprintf (asmfile, "%s\"%s:v", ASM_STABS_OP, decl_name);
+
+	    current_sym_value
+	      = DEBUGGER_ARG_OFFSET (current_sym_value,
+				     XEXP (XEXP (DECL_RTL (parms), 0), 0));
 	    dbxout_type (TREE_TYPE (parms), 0);
 	    dbxout_finish_symbol (parms);
 	  }
-- 
GitLab