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
4b583c43
Commit
4b583c43
authored
Jun 21, 2011
by
Christian Bruel
Committed by
Christian Bruel
Jun 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PR middle-end/49139 PR other/43564 make sure the inline function is inlined
From-SVN: r175241
parent
3bb556ad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
gcc/ChangeLog
+5
-0
gcc/ipa-inline.c
+3
-1
No files found.
gcc/ChangeLog
View file @
4b583c43
2011-06-21 Christian Bruel <christian.bruel@st.com>
2011-06-21 Christian Bruel <christian.bruel@st.com>
PR other/43564
* ipa-inline.c (can_inline_edge_p): Check !DECL_DISREGARD_INLINE_LIMITS.
2011-06-21 Christian Bruel <christian.bruel@st.com>
PR middle-end/49139
PR middle-end/49139
* cgraphunit.c (process_function_and_variable_attributes): warn when
* cgraphunit.c (process_function_and_variable_attributes): warn when
always_inline functions that are not inline.
always_inline functions that are not inline.
...
...
gcc/ipa-inline.c
View file @
4b583c43
...
@@ -318,8 +318,10 @@ can_inline_edge_p (struct cgraph_edge *e, bool report)
...
@@ -318,8 +318,10 @@ can_inline_edge_p (struct cgraph_edge *e, bool report)
?
callee_tree
?
callee_tree
:
optimization_default_node
);
:
optimization_default_node
);
if
((
caller_opt
->
x_optimize
>
callee_opt
->
x_optimize
)
if
((
(
caller_opt
->
x_optimize
>
callee_opt
->
x_optimize
)
||
(
caller_opt
->
x_optimize_size
!=
callee_opt
->
x_optimize_size
))
||
(
caller_opt
->
x_optimize_size
!=
callee_opt
->
x_optimize_size
))
/* gcc.dg/pr43564.c. Look at forced inline even in -O0. */
&&
!
DECL_DISREGARD_INLINE_LIMITS
(
e
->
callee
->
decl
))
{
{
e
->
inline_failed
=
CIF_TARGET_OPTIMIZATION_MISMATCH
;
e
->
inline_failed
=
CIF_TARGET_OPTIMIZATION_MISMATCH
;
inlinable
=
false
;
inlinable
=
false
;
...
...
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