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
3bc6b3e6
Commit
3bc6b3e6
authored
Sep 07, 2010
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define target hook TARGET_UNWIND_EMIT_BEFORE_INSN.
From-SVN: r163961
parent
aa229804
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
3 deletions
+28
-3
gcc/ChangeLog
+9
-2
gcc/doc/tm.texi
+4
-0
gcc/doc/tm.texi.in
+2
-0
gcc/final.c
+6
-1
gcc/target.def
+7
-0
No files found.
gcc/ChangeLog
View file @
3bc6b3e6
2010-09-07 Richard Henderson <rth@redhat.com>
* target.def (unwind_emit_before_insn): New hook.
* doc/tm.texi.in: Add @hook marker for it.
* doc/tm.texi: Rebuild.
* final.c (final_scan_insn): Respect unwind_emit_before_insn.
2010-09-07 Martin Jambor <mjambor@suse.cz>
PR fortran/43665
...
...
@@ -6,8 +13,8 @@
2010-09-07 Jan Hubicka <jh@suse.cz>
* tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
array_ref_low_bound
in string access folding.
* tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
array_ref_low_bound
in string access folding.
2010-09-07 Uros Bizjak <ubizjak@gmail.com>
...
...
gcc/doc/tm.texi
View file @
3bc6b3e6
...
...
@@ -8749,6 +8749,10 @@ This target hook emits assembly directives required to unwind the
given
instruction
.
This
is
only
used
when
TARGET_UNWIND_INFO
is
set
.
@end
deftypefn
@deftypevr
{
Target
Hook
}
bool
TARGET_ASM_UNWIND_EMIT_BEFORE_INSN
True
if
the
@code
{
TARGET_ASM_UNWIND_EMIT
}
hook
should
be
called
before
the
assembly
for
@var
{
insn
}
has
been
emitted
,
false
if
the
hook
should
be
called
afterward
.
@end
deftypevr
@node
Exception
Region
Output
@subsection
Assembler
Commands
for
Exception
Regions
...
...
gcc/doc/tm.texi.in
View file @
3bc6b3e6
...
...
@@ -8739,6 +8739,8 @@ This target hook emits assembly directives required to unwind the
given
instruction
.
This
is
only
used
when
TARGET_UNWIND_INFO
is
set
.
@end
deftypefn
@hook
TARGET_ASM_UNWIND_EMIT_BEFORE_INSN
@node
Exception
Region
Output
@subsection
Assembler
Commands
for
Exception
Regions
...
...
gcc/final.c
View file @
3bc6b3e6
...
...
@@ -2655,7 +2655,8 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
/* ??? This will put the directives in the wrong place if
get_insn_template outputs assembly directly. However calling it
before get_insn_template breaks if the insns is split. */
if
(
targetm
.
asm_out
.
unwind_emit
)
if
(
targetm
.
asm_out
.
unwind_emit_before_insn
&&
targetm
.
asm_out
.
unwind_emit
)
targetm
.
asm_out
.
unwind_emit
(
asm_out_file
,
insn
);
if
(
CALL_P
(
insn
))
...
...
@@ -2713,6 +2714,10 @@ final_scan_insn (rtx insn, FILE *file, int optimize ATTRIBUTE_UNUSED,
dwarf2out_frame_debug
(
insn
,
true
);
#endif
if
(
!
targetm
.
asm_out
.
unwind_emit_before_insn
&&
targetm
.
asm_out
.
unwind_emit
)
targetm
.
asm_out
.
unwind_emit
(
asm_out_file
,
insn
);
current_output_insn
=
debug_insn
=
0
;
}
}
...
...
gcc/target.def
View file @
3bc6b3e6
...
...
@@ -152,6 +152,13 @@ DEFHOOK
void
,
(
FILE
*
stream
,
rtx
insn
),
NULL
)
DEFHOOKPOD
(
unwind_emit_before_insn
,
"True if the @code{TARGET_ASM_UNWIND_EMIT} hook should be called before\
the assembly for @var{insn} has been emitted, false if the hook should\
be called afterward."
,
bool
,
true
)
/* Output an internal label. */
DEFHOOK
(
internal_label
,
...
...
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