diff options
author | Michael Meissner <gnu@the-meissners.org> | 2008-08-30 23:50:40 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2008-08-30 23:50:40 +0000 |
commit | 5779e7133d84c5873249bb643d9852f314022f0b (patch) | |
tree | b3ee120a2ecf25d00fba24415c8566f83135a110 /gcc/tree-inline.c | |
parent | 0257eee5bd4700647061f61b13a2f89b2a4b4f28 (diff) | |
download | gcc-5779e7133d84c5873249bb643d9852f314022f0b.tar.gz |
Change attribute((option(...))) to attribute((target(...))); Do not allocate tree nodes on x86 for builtins until we generate code for the ISA; Delete hot/cold functions changing optimization; Make C++ support target specific functions; Add #pragma GCC {push_options,pop_options,reset_options} instead of #pragma GCC {target,optimize} {push,reset,pop}
From-SVN: r139812
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 0f59d164925..e38ef3a8d4e 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -4369,6 +4369,11 @@ build_duplicate_type (tree type) bool tree_can_inline_p (tree caller, tree callee) { +#if 0 + /* This causes a regression in SPEC in that it prevents a cold function from + inlining a hot function. Perhaps this should only apply to functions + that the user declares hot/cold/optimize explicitly. */ + /* Don't inline a function with a higher optimization level than the caller, or with different space constraints (hot/cold functions). */ tree caller_tree = DECL_FUNCTION_SPECIFIC_OPTIMIZATION (caller); @@ -4390,6 +4395,7 @@ tree_can_inline_p (tree caller, tree callee) || (caller_opt->optimize_size != callee_opt->optimize_size)) return false; } +#endif /* Allow the backend to decide if inlining is ok. */ return targetm.target_option.can_inline_p (caller, callee); |