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
d8d5b1e1
Commit
d8d5b1e1
authored
Nov 21, 1992
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not allow insns to be scheduled before prologue insns if profiling.
From-SVN: r2766
parent
28bbe06b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletions
+25
-1
gcc/config/mips/mips.c
+6
-0
gcc/config/mips/mips.h
+7
-1
gcc/config/mips/mips.md
+12
-0
No files found.
gcc/config/mips/mips.c
View file @
d8d5b1e1
...
...
@@ -4207,6 +4207,12 @@ mips_expand_prologue ()
if
(
frame_pointer_needed
)
emit_insn
(
gen_movsi
(
frame_pointer_rtx
,
stack_pointer_rtx
));
}
/* If we are profiling, make sure no instructions are scheduled before
the call to mcount. */
if
(
profile_flag
||
profile_block_flag
)
emit_insn
(
gen_blockage
());
}
...
...
gcc/config/mips/mips.h
View file @
d8d5b1e1
...
...
@@ -482,7 +482,7 @@ while (0)
/* Print subsidiary information on the compiler version in use. */
#define MIPS_VERSION "[AL 1.1, MM 2
8
]"
#define MIPS_VERSION "[AL 1.1, MM 2
9
]"
#ifndef MACHINE_TYPE
#define MACHINE_TYPE "BSD Mips"
...
...
@@ -1929,6 +1929,12 @@ typedef struct mips_args {
fprintf (FILE, "\t.set\tat\n"); \
}
/* Define this macro if the code for function profiling should come
before the function prologue. Normally, the profiling code comes
after. */
/* #define PROFILE_BEFORE_PROLOGUE */
/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
the stack pointer does not matter. The value is tested only in
functions that have frame pointers.
...
...
gcc/config/mips/mips.md
View file @
d8d5b1e1
...
...
@@ -4003,6 +4003,18 @@ move\\t%0,%z4\\n\\
}
}")
;; Block any insns from being moved before this point, since the
;; profiling call to mcount can use various registers that aren't
;; saved or used to pass arguments.
(define_insn "blockage"
[
(unspec_volatile [(const_int 0)
]
0)]
""
""
[
(set_attr "type" "unknown")
(set_attr "mode" "none")
(set_attr "length" "0")])
;; At present, don't expand the epilogue, reorg.c will clobber the
;; return register in compiling gen_lowpart (emit-rtl.c).
;;
...
...
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