summaryrefslogtreecommitdiff
path: root/gcc/config/sh/sh.opt
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-29 14:35:38 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-29 14:35:38 +0000
commitbc3f5c21c4b87d6eb6ce84bac3375b25c00aa21c (patch)
tree9d3229cf46e48931958d6855a1294bbe34707735 /gcc/config/sh/sh.opt
parent179848c3b744fff8e719ccfaf387356872ac965c (diff)
downloadgcc-bc3f5c21c4b87d6eb6ce84bac3375b25c00aa21c.tar.gz
* sh.opt (minline-ic_invalidate): New option.
(musermode): Adjust comment. * sh.c (sh_initialize_trampoline): Emit library call unless is set; if it is set, don't emit library call if we can use icbi instead. * sh.md (ic_invalidate_line, ic_invalidate_line_sh4a): Also use icbi for TARGET_SH4_300. * t-sh (LIB1ASMFUNCS_CACHE): Set. * doc/invoke.texi: Document -minline-ic_invalidate; Update -musermode documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119314 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/sh/sh.opt')
-rw-r--r--gcc/config/sh/sh.opt6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/sh/sh.opt b/gcc/config/sh/sh.opt
index 161fdd8dcaf..d03dcf2f828 100644
--- a/gcc/config/sh/sh.opt
+++ b/gcc/config/sh/sh.opt
@@ -268,6 +268,10 @@ mindexed-addressing
Target Report Mask(ALLOW_INDEXED_ADDRESS) Condition(SUPPORT_ANY_SH5_32MEDIA)
Enable the use of the indexed addressing mode for SHmedia32/SHcompact
+minline-ic_invalidate
+Target Report Var(TARGET_INLINE_IC_INVALIDATE)
+inline code to invalidate instruction cache entries after setting up nested function trampolines
+
minvalid-symbols
Target Report Mask(INVALID_SYMBOLS) Condition(SUPPORT_ANY_SH5)
Assume symbols might be invalid
@@ -316,7 +320,7 @@ Cost to assume for a multiply insn
musermode
Target Report RejectNegative Mask(USERMODE)
-Generate library function call to invalidate instruction cache entries after fixing trampoline
+Don't generate privileged-mode only code; implies -mno-inline-ic_invalidate if the inline code would not work in user mode.
;; We might want to enable this by default for TARGET_HARD_SH4, because
;; zero-offset branches have zero latency. Needs some benchmarking.