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
42755c21
Commit
42755c21
authored
Jun 11, 2009
by
Richard Henderson
Committed by
Richard Henderson
Jun 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
From-SVN: r148412
parent
f2ae7631
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
gcc/ChangeLog
+2
-0
gcc/dwarf2out.c
+3
-3
No files found.
gcc/ChangeLog
View file @
42755c21
2009-06-11 Richard Henderson <rth@redhat.com>
2009-06-11 Richard Henderson <rth@redhat.com>
* dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
* dwarf2out.c (need_data_align_sf_opcode): New.
* dwarf2out.c (need_data_align_sf_opcode): New.
(div_data_align): Move earlier.
(div_data_align): Move earlier.
(def_cfa_1, reg_save): Use it.
(def_cfa_1, reg_save): Use it.
...
...
gcc/dwarf2out.c
View file @
42755c21
...
@@ -524,7 +524,7 @@ init_return_column_size (enum machine_mode mode, rtx mem, unsigned int c)
...
@@ -524,7 +524,7 @@ init_return_column_size (enum machine_mode mode, rtx mem, unsigned int c)
/* Divide OFF by DWARF_CIE_DATA_ALIGNMENT, asserting no remainder. */
/* Divide OFF by DWARF_CIE_DATA_ALIGNMENT, asserting no remainder. */
static
HOST_WIDE_INT
static
inline
HOST_WIDE_INT
div_data_align
(
HOST_WIDE_INT
off
)
div_data_align
(
HOST_WIDE_INT
off
)
{
{
HOST_WIDE_INT
r
=
off
/
DWARF_CIE_DATA_ALIGNMENT
;
HOST_WIDE_INT
r
=
off
/
DWARF_CIE_DATA_ALIGNMENT
;
...
@@ -535,7 +535,7 @@ div_data_align (HOST_WIDE_INT off)
...
@@ -535,7 +535,7 @@ div_data_align (HOST_WIDE_INT off)
/* Return true if we need a signed version of a given opcode
/* Return true if we need a signed version of a given opcode
(e.g. DW_CFA_offset_extended_sf vs DW_CFA_offset_extended). */
(e.g. DW_CFA_offset_extended_sf vs DW_CFA_offset_extended). */
static
bool
static
inline
bool
need_data_align_sf_opcode
(
HOST_WIDE_INT
off
)
need_data_align_sf_opcode
(
HOST_WIDE_INT
off
)
{
{
return
DWARF_CIE_DATA_ALIGNMENT
<
0
?
off
>
0
:
off
<
0
;
return
DWARF_CIE_DATA_ALIGNMENT
<
0
?
off
>
0
:
off
<
0
;
...
@@ -992,7 +992,7 @@ def_cfa_1 (const char *label, dw_cfa_location *loc_p)
...
@@ -992,7 +992,7 @@ def_cfa_1 (const char *label, dw_cfa_location *loc_p)
the CFA register did not change but the offset did. The data
the CFA register did not change but the offset did. The data
factoring for DW_CFA_def_cfa_offset_sf happens in output_cfi, or
factoring for DW_CFA_def_cfa_offset_sf happens in output_cfi, or
in the assembler via the .cfi_def_cfa_offset directive. */
in the assembler via the .cfi_def_cfa_offset directive. */
if
(
loc
.
offset
<
0
)
if
(
need_data_align_sf_opcode
(
loc
.
offset
)
)
cfi
->
dw_cfi_opc
=
DW_CFA_def_cfa_offset_sf
;
cfi
->
dw_cfi_opc
=
DW_CFA_def_cfa_offset_sf
;
else
else
cfi
->
dw_cfi_opc
=
DW_CFA_def_cfa_offset
;
cfi
->
dw_cfi_opc
=
DW_CFA_def_cfa_offset
;
...
...
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