Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
4ee194ec
Commit
4ee194ec
authored
Jul 31, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(dbxout_parms): Do something for structures
passed by invisible reference, and living in memory. From-SVN: r1727
parent
27f427f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
3 deletions
+37
-3
gcc/dbxout.c
+37
-3
No files found.
gcc/dbxout.c
View file @
4ee194ec
...
...
@@ -1920,9 +1920,9 @@ dbxout_parms (parms)
dbxout_finish_symbol
(
parms
);
}
else
if
(
GET_CODE
(
DECL_RTL
(
parms
))
==
MEM
&&
GET_CODE
(
XEXP
(
DECL_RTL
(
parms
),
0
))
==
REG
&&
rtx_equal_p
(
XEXP
(
DECL_RTL
(
parms
),
0
),
DECL_INCOMING_RTL
(
parms
)))
&&
GET_CODE
(
XEXP
(
DECL_RTL
(
parms
),
0
))
==
REG
)
/*
&& rtx_equal_p (XEXP (DECL_RTL (parms), 0),
DECL_INCOMING_RTL (parms)))
*/
{
/* Parm was passed via invisible reference.
That is, its address was passed in a register.
...
...
@@ -2084,6 +2084,40 @@ dbxout_reg_parms (parms)
dbxout_type
(
TREE_TYPE
(
parms
),
0
,
0
);
dbxout_finish_symbol
(
parms
);
}
#if 0
else if (GET_CODE (DECL_RTL (parms)) == MEM
&& GET_CODE (XEXP (DECL_RTL (parms), 0)) == REG)
{
/* Parm was passed via invisible reference.
That is, its address was passed in a register.
Output it as if it lived in that register.
The debugger will know from the type
that it was actually passed by invisible reference. */
current_sym_code = N_RSYM;
/* DECL_RTL looks like (MEM (REG...). Get the register number. */
current_sym_value = REGNO (XEXP (DECL_RTL (parms), 0));
current_sym_addr = 0;
FORCE_TEXT;
if (DECL_NAME (parms))
{
current_sym_nchars = 2 + strlen (IDENTIFIER_POINTER (DECL_NAME (parms)));
fprintf (asmfile, "%s \"%s:r", ASM_STABS_OP,
IDENTIFIER_POINTER (DECL_NAME (parms)));
}
else
{
current_sym_nchars = 8;
fprintf (asmfile, "%s \"(anon):r", ASM_STABS_OP);
}
dbxout_type (TREE_TYPE (parms), 0, 0);
dbxout_finish_symbol (parms);
}
#endif
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment