projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
33406b8
)
Tweak GCC's inlining parameters to get thread_obj inlined
author
sven.panne@aedion.de
<unknown>
Thu, 10 Aug 2006 14:45:05 +0000
(14:45 +0000)
committer
sven.panne@aedion.de
<unknown>
Thu, 10 Aug 2006 14:45:05 +0000
(14:45 +0000)
rts/Makefile
patch
|
blob
|
history
diff --git
a/rts/Makefile
b/rts/Makefile
index
65c2c22
..
2522a0b
100644
(file)
--- a/
rts/Makefile
+++ b/
rts/Makefile
@@
-317,6
+317,9
@@
endif
# -O3 helps unroll some loops (especially in copy() with a constant argument).
GC_HC_OPTS += -optc-O3
# -O3 helps unroll some loops (especially in copy() with a constant argument).
GC_HC_OPTS += -optc-O3
+# Without this, thread_obj will not be inlined (at least on x86 with GCC 4.1.0)
+GCCompact_HC_OPTS += -optc-finline-limit=2500
+
# -fno-strict-aliasing is required for the runtime, because we often
# use a variety of types to represent closure pointers (StgPtr,
# StgClosure, StgMVar, etc.), and without -fno-strict-aliasing gcc is
# -fno-strict-aliasing is required for the runtime, because we often
# use a variety of types to represent closure pointers (StgPtr,
# StgClosure, StgMVar, etc.), and without -fno-strict-aliasing gcc is