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
fa1610e9
Commit
fa1610e9
authored
Mar 15, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change all calls to eliminate_regs.
From-SVN: r13705
parent
29ae5012
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
20 deletions
+20
-20
gcc/caller-save.c
+2
-2
gcc/dbxout.c
+4
-4
gcc/dwarf2out.c
+3
-3
gcc/dwarfout.c
+2
-2
gcc/reload.c
+5
-5
gcc/sdbout.c
+4
-4
No files found.
gcc/caller-save.c
View file @
fa1610e9
/* Save and restore call-clobbered registers which are live across a call.
Copyright (C) 1989, 1992, 1994, 1995 Free Software Foundation, Inc.
Copyright (C) 1989, 1992, 1994, 1995
, 1997
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -335,7 +335,7 @@ setup_save_areas (pchanged)
for
(
j
=
1
;
j
<=
MOVE_MAX
/
UNITS_PER_WORD
;
j
++
)
if
(
regno_save_mem
[
i
][
j
]
!=
0
)
ok
&=
strict_memory_address_p
(
GET_MODE
(
regno_save_mem
[
i
][
j
]),
XEXP
(
eliminate_regs
(
regno_save_mem
[
i
][
j
],
0
,
NULL_RTX
),
0
));
XEXP
(
eliminate_regs
(
regno_save_mem
[
i
][
j
],
0
,
NULL_RTX
,
1
),
0
));
return
ok
;
}
...
...
gcc/dbxout.c
View file @
fa1610e9
/* Output dbx-format symbol table information from GNU compiler.
Copyright (C) 1987, 88, 92
, 93, 94, 95, 1996
Free Software Foundation, Inc.
Copyright (C) 1987, 88, 92
-96, 1997
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -1859,7 +1859,7 @@ dbxout_symbol (decl, local)
/* else it is something we handle like a normal variable. */
}
DECL_RTL
(
decl
)
=
eliminate_regs
(
DECL_RTL
(
decl
),
0
,
NULL_RTX
);
DECL_RTL
(
decl
)
=
eliminate_regs
(
DECL_RTL
(
decl
),
0
,
NULL_RTX
,
0
);
#ifdef LEAF_REG_REMAP
if
(
leaf_function
)
leaf_renumber_regs_insn
(
DECL_RTL
(
decl
));
...
...
@@ -2171,8 +2171,8 @@ dbxout_parms (parms)
/* Perform any necessary register eliminations on the parameter's rtl,
so that the debugging output will be accurate. */
DECL_INCOMING_RTL
(
parms
)
=
eliminate_regs
(
DECL_INCOMING_RTL
(
parms
),
0
,
NULL_RTX
);
DECL_RTL
(
parms
)
=
eliminate_regs
(
DECL_RTL
(
parms
),
0
,
NULL_RTX
);
=
eliminate_regs
(
DECL_INCOMING_RTL
(
parms
),
0
,
NULL_RTX
,
0
);
DECL_RTL
(
parms
)
=
eliminate_regs
(
DECL_RTL
(
parms
),
0
,
NULL_RTX
,
0
);
#ifdef LEAF_REG_REMAP
if
(
leaf_function
)
{
...
...
gcc/dwarf2out.c
View file @
fa1610e9
/* Output Dwarf2 format symbol table information from the GNU C compiler.
Copyright (C) 1992, 1993, 1995, 1996 Free Software Foundation, Inc.
Copyright (C) 1992, 1993, 1995, 1996
, 1997
Free Software Foundation, Inc.
Contributed by Gary Funck (gary@intrepid.com). Derived from the
DWARF 1 implementation written by Ron Guilmette (rfg@monkeys.com).
Extensively modified by Jason Merrill (jason@cygnus.com).
...
...
@@ -5708,7 +5708,7 @@ add_location_attribute (die, rtl)
&&
(
GET_CODE
(
rtl
)
!=
MEM
||
!
is_pseudo_reg
(
XEXP
(
rtl
,
0
))))
{
loc_descr
=
loc_descriptor
(
eliminate_regs
(
rtl
,
0
,
NULL_RTX
));
loc_descr
=
loc_descriptor
(
eliminate_regs
(
rtl
,
0
,
NULL_RTX
,
0
));
}
#ifdef MIPS_DEBUGGING_INFO
...
...
@@ -6115,7 +6115,7 @@ add_bound_info (subrange_die, bound_attr, bound)
if
(
!
optimize
)
{
bound_loc
=
mem_loc_descriptor
(
eliminate_regs
(
SAVE_EXPR_RTL
(
bound
),
0
,
NULL_RTX
));
(
eliminate_regs
(
SAVE_EXPR_RTL
(
bound
),
0
,
NULL_RTX
,
0
));
add_AT_loc
(
subrange_die
,
bound_attr
,
bound_loc
);
}
/* else leave out the attribute. */
...
...
gcc/dwarfout.c
View file @
fa1610e9
...
...
@@ -1860,7 +1860,7 @@ output_bound_representation (bound, dim_num, u_or_l)
if
(
TREE_CODE
(
bound
)
==
SAVE_EXPR
)
output_loc_descriptor
(
eliminate_regs
(
SAVE_EXPR_RTL
(
bound
),
0
,
NULL_RTX
));
(
eliminate_regs
(
SAVE_EXPR_RTL
(
bound
),
0
,
NULL_RTX
,
0
));
}
ASM_OUTPUT_LABEL
(
asm_out_file
,
end_label
);
...
...
@@ -2130,7 +2130,7 @@ location_attribute (rtl)
if
(
!
is_pseudo_reg
(
rtl
)
&&
(
GET_CODE
(
rtl
)
!=
MEM
||
!
is_pseudo_reg
(
XEXP
(
rtl
,
0
))))
output_loc_descriptor
(
eliminate_regs
(
rtl
,
0
,
NULL_RTX
));
output_loc_descriptor
(
eliminate_regs
(
rtl
,
0
,
NULL_RTX
,
0
));
ASM_OUTPUT_LABEL
(
asm_out_file
,
end_label
);
}
...
...
gcc/reload.c
View file @
fa1610e9
...
...
@@ -673,7 +673,7 @@ get_secondary_mem (x, mode, opnum, type)
/* Get a version of the address doing any eliminations needed. If that
didn't give us a new MEM, make a new one if it isn't valid. */
loc
=
eliminate_regs
(
secondary_memlocs
[(
int
)
mode
],
VOIDmode
,
NULL_RTX
);
loc
=
eliminate_regs
(
secondary_memlocs
[(
int
)
mode
],
VOIDmode
,
NULL_RTX
,
0
);
mem_valid
=
strict_memory_address_p
(
mode
,
XEXP
(
loc
,
0
));
if
(
!
mem_valid
&&
loc
==
secondary_memlocs
[(
int
)
mode
])
...
...
@@ -2604,7 +2604,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
/* We must rerun eliminate_regs, in case the elimination
offsets have changed. */
rtx
address
=
XEXP
(
eliminate_regs
(
reg_equiv_memory_loc
[
regno
],
0
,
NULL_RTX
),
0
,
NULL_RTX
,
0
),
0
);
if
(
rtx_varies_p
(
address
))
...
...
@@ -4057,7 +4057,7 @@ find_reloads_toplev (x, opnum, type, ind_levels, is_set_dest)
/* We must rerun eliminate_regs, in case the elimination
offsets have changed. */
rtx
addr
=
XEXP
(
eliminate_regs
(
reg_equiv_memory_loc
[
regno
],
0
,
NULL_RTX
),
NULL_RTX
,
0
),
0
);
if
(
rtx_varies_p
(
addr
))
...
...
@@ -4141,7 +4141,7 @@ find_reloads_toplev (x, opnum, type, ind_levels, is_set_dest)
/* We must rerun eliminate_regs, in case the elimination
offsets have changed. */
rtx
addr
=
XEXP
(
eliminate_regs
(
reg_equiv_memory_loc
[
regno
],
0
,
NULL_RTX
),
NULL_RTX
,
0
),
0
);
if
(
BYTES_BIG_ENDIAN
)
{
...
...
@@ -4181,7 +4181,7 @@ make_memloc (ad, regno)
register
int
i
;
/* We must rerun eliminate_regs, in case the elimination
offsets have changed. */
rtx
tem
=
XEXP
(
eliminate_regs
(
reg_equiv_memory_loc
[
regno
],
0
,
NULL_RTX
),
rtx
tem
=
XEXP
(
eliminate_regs
(
reg_equiv_memory_loc
[
regno
],
0
,
NULL_RTX
,
0
),
0
);
#if 0 /* We cannot safely reuse a memloc made here;
...
...
gcc/sdbout.c
View file @
fa1610e9
/* Output sdb-format symbol table information from GNU compiler.
Copyright (C) 1988, 92, 93, 94, 95,
1996
Free Software Foundation, Inc.
Copyright (C) 1988, 92, 93, 94, 95,
96, 1997
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -787,7 +787,7 @@ sdbout_symbol (decl, local)
if
(
DECL_RTL
(
decl
)
==
0
)
return
;
DECL_RTL
(
decl
)
=
eliminate_regs
(
DECL_RTL
(
decl
),
0
,
NULL_RTX
);
DECL_RTL
(
decl
)
=
eliminate_regs
(
DECL_RTL
(
decl
),
0
,
NULL_RTX
,
0
);
#ifdef LEAF_REG_REMAP
if
(
leaf_function
)
leaf_renumber_regs_insn
(
DECL_RTL
(
decl
));
...
...
@@ -1287,8 +1287,8 @@ sdbout_parms (parms)
/* Perform any necessary register eliminations on the parameter's rtl,
so that the debugging output will be accurate. */
DECL_INCOMING_RTL
(
parms
)
=
eliminate_regs
(
DECL_INCOMING_RTL
(
parms
),
0
,
NULL_RTX
);
DECL_RTL
(
parms
)
=
eliminate_regs
(
DECL_RTL
(
parms
),
0
,
NULL_RTX
);
eliminate_regs
(
DECL_INCOMING_RTL
(
parms
),
0
,
NULL_RTX
,
0
);
DECL_RTL
(
parms
)
=
eliminate_regs
(
DECL_RTL
(
parms
),
0
,
NULL_RTX
,
0
);
if
(
PARM_PASSED_IN_MEMORY
(
parms
))
{
...
...
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