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
bf27c43e
Commit
bf27c43e
authored
Jun 11, 2012
by
Richard Henderson
Committed by
Richard Henderson
Jun 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
From-SVN: r188391
parent
f35aed49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
gcc/ChangeLog
+4
-0
gcc/dwarf2cfi.c
+19
-5
No files found.
gcc/ChangeLog
View file @
bf27c43e
2012-06-11 Richard Henderson <rth@redhat.com>
* dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
2012-06-11 Olivier Hainque <hainque@adacore.com>
2012-06-11 Olivier Hainque <hainque@adacore.com>
* Makefile.in (GNATLIBCFLAGS_FOR_C): Remove $(PIC_FLAG_FOR_TARGET).
* Makefile.in (GNATLIBCFLAGS_FOR_C): Remove $(PIC_FLAG_FOR_TARGET).
...
...
gcc/dwarf2cfi.c
View file @
bf27c43e
...
@@ -2429,18 +2429,20 @@ scan_trace (dw_trace_info *trace)
...
@@ -2429,18 +2429,20 @@ scan_trace (dw_trace_info *trace)
elt
=
XVECEXP
(
pat
,
0
,
1
);
elt
=
XVECEXP
(
pat
,
0
,
1
);
/* If ELT is an instruction from target of an annulled branch,
the effects are for the target only and so the args_size
and CFA along the current path shouldn't change. */
if
(
INSN_FROM_TARGET_P
(
elt
))
if
(
INSN_FROM_TARGET_P
(
elt
))
{
{
HOST_WIDE_INT
restore_args_size
;
HOST_WIDE_INT
restore_args_size
;
cfi_vec
save_row_reg_save
;
cfi_vec
save_row_reg_save
;
/* If ELT is an instruction from target of an annulled
branch, the effects are for the target only and so
the args_size and CFA along the current path
shouldn't change. */
add_cfi_insn
=
NULL
;
add_cfi_insn
=
NULL
;
restore_args_size
=
cur_trace
->
end_true_args_size
;
restore_args_size
=
cur_trace
->
end_true_args_size
;
cur_cfa
=
&
cur_row
->
cfa
;
cur_cfa
=
&
cur_row
->
cfa
;
save_row_reg_save
=
VEC_copy
(
dw_cfi_ref
,
gc
,
cur_row
->
reg_save
);
save_row_reg_save
=
VEC_copy
(
dw_cfi_ref
,
gc
,
cur_row
->
reg_save
);
scan_insn_after
(
elt
);
scan_insn_after
(
elt
);
...
@@ -2453,8 +2455,20 @@ scan_trace (dw_trace_info *trace)
...
@@ -2453,8 +2455,20 @@ scan_trace (dw_trace_info *trace)
cur_row
->
cfa
=
this_cfa
;
cur_row
->
cfa
=
this_cfa
;
cur_row
->
reg_save
=
save_row_reg_save
;
cur_row
->
reg_save
=
save_row_reg_save
;
cur_cfa
=
&
this_cfa
;
cur_cfa
=
&
this_cfa
;
continue
;
}
}
else
{
/* If ELT is a annulled branch-taken instruction (i.e.
executed only when branch is not taken), the args_size
and CFA should not change through the jump. */
create_trace_edges
(
control
);
/* Update and continue with the trace. */
add_cfi_insn
=
insn
;
scan_insn_after
(
elt
);
def_cfa_1
(
&
this_cfa
);
}
continue
;
}
}
/* The insns in the delay slot should all be considered to happen
/* The insns in the delay slot should all be considered to happen
...
...
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