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
92d649c4
Commit
92d649c4
authored
Sep 30, 2013
by
Venkataramanan Kumar
Committed by
Venkataramanan Kumar
Sep 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Function profiling macro support for Aarch64
From-SVN: r203028
parent
bd9534e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
16 deletions
+24
-16
gcc/ChangeLog
+8
-0
gcc/config/aarch64/aarch64.c
+0
-7
gcc/config/aarch64/aarch64.h
+16
-2
gcc/testsuite/lib/target-supports.exp
+0
-7
No files found.
gcc/ChangeLog
View file @
92d649c4
2013
-
09
-
30
Venkataramanan
Kumar
<
venkataramanan
.
kumar
@
linaro
.
org
>
*
config
/
aarch64
/
aarch64
.
h
(
MCOUNT_NAME
):
Define
.
(
NO_PROFILE_COUNTERS
):
Likewise
.
(
PROFILE_HOOK
):
Likewise
.
(
FUNCTION_PROFILER
):
Likewise
.
*
config
/
aarch64
/
aarch64
.
c
(
aarch64_function_profiler
):
Remove
.
2013
-
09
-
30
Iain
Sandoe
<
iain
@
codesourcery
.
com
>
2013
-
09
-
30
Iain
Sandoe
<
iain
@
codesourcery
.
com
>
*
config
/
rs6000
/
darwin
.
md
(
load_macho_picbase_si
):
Wrap
machopic
*
config
/
rs6000
/
darwin
.
md
(
load_macho_picbase_si
):
Wrap
machopic
...
...
gcc/config/aarch64/aarch64.c
View file @
92d649c4
...
@@ -3858,13 +3858,6 @@ aarch64_print_operand_address (FILE *f, rtx x)
...
@@ -3858,13 +3858,6 @@ aarch64_print_operand_address (FILE *f, rtx x)
output_addr_const
(
f
,
x
);
output_addr_const
(
f
,
x
);
}
}
void
aarch64_function_profiler
(
FILE
*
f
ATTRIBUTE_UNUSED
,
int
labelno
ATTRIBUTE_UNUSED
)
{
sorry
(
"function profiling"
);
}
bool
bool
aarch64_label_mentioned_p
(
rtx
x
)
aarch64_label_mentioned_p
(
rtx
x
)
{
{
...
...
gcc/config/aarch64/aarch64.h
View file @
92d649c4
...
@@ -783,8 +783,22 @@ do { \
...
@@ -783,8 +783,22 @@ do { \
#define PRINT_OPERAND_ADDRESS(STREAM, X) \
#define PRINT_OPERAND_ADDRESS(STREAM, X) \
aarch64_print_operand_address (STREAM, X)
aarch64_print_operand_address (STREAM, X)
#define FUNCTION_PROFILER(STREAM, LABELNO) \
#define MCOUNT_NAME "_mcount"
aarch64_function_profiler (STREAM, LABELNO)
#define NO_PROFILE_COUNTERS 1
/* Emit rtl for profiling. Output assembler code to FILE
to call "_mcount" for profiling a function entry. */
#define PROFILE_HOOK(LABEL) \
{ \
rtx fun,lr; \
lr = get_hard_reg_initial_val (Pmode, LR_REGNUM); \
fun = gen_rtx_SYMBOL_REF (Pmode, MCOUNT_NAME); \
emit_library_call (fun, LCT_NORMAL, VOIDmode, 1, lr, Pmode); \
}
/* All the work done in PROFILE_HOOK, but still required. */
#define FUNCTION_PROFILER(STREAM, LABELNO) do { } while (0)
/* For some reason, the Linux headers think they know how to define
/* For some reason, the Linux headers think they know how to define
these macros. They don't!!! */
these macros. They don't!!! */
...
...
gcc/testsuite/lib/target-supports.exp
View file @
92d649c4
...
@@ -494,13 +494,6 @@ proc check_profiling_available { test_what } {
...
@@ -494,13 +494,6 @@ proc check_profiling_available { test_what } {
return 0
return 0
}
}
# We don't yet support profiling for AArch64.
if { [istarget aarch64*-*-*]
&& ([lindex $test_what 1] == "-p"
|| [lindex $test_what 1] == "-pg") } {
return 0
}
# cygwin does not support -p.
# cygwin does not support -p.
if { [istarget *-*-cygwin*] && $test_what == "-p" } {
if { [istarget *-*-cygwin*] && $test_what == "-p" } {
return 0
return 0
...
...
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