mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-12 05:13:50 +08:00
ipa-inline.c (cgraph_decide_inlining_incrementally): Do not inline regular functions into always-inline functions.
2010-01-06 Richard Guenther <rguenther@suse.de> * ipa-inline.c (cgraph_decide_inlining_incrementally): Do not inline regular functions into always-inline functions. * gcc.c-torture/compile/pr42632.c: New testcase. From-SVN: r155679
This commit is contained in:
parent
f05f79fffc
commit
6209a13e20
@ -1,3 +1,8 @@
|
||||
2010-01-06 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* ipa-inline.c (cgraph_decide_inlining_incrementally): Do
|
||||
not inline regular functions into always-inline functions.
|
||||
|
||||
2010-01-06 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* config/rx/rx.h (enum rx_cpu_type): Add RX200.
|
||||
|
@ -1506,7 +1506,10 @@ cgraph_decide_inlining_incrementally (struct cgraph_node *node,
|
||||
}
|
||||
|
||||
/* Now do the automatic inlining. */
|
||||
if (mode != INLINE_ALL && mode != INLINE_ALWAYS_INLINE)
|
||||
if (mode != INLINE_ALL && mode != INLINE_ALWAYS_INLINE
|
||||
/* Never inline regular functions into always-inline functions
|
||||
during incremental inlining. */
|
||||
&& !node->local.disregard_inline_limits)
|
||||
for (e = node->callees; e; e = e->next_callee)
|
||||
{
|
||||
int allowed_growth = 0;
|
||||
|
@ -1,3 +1,7 @@
|
||||
2010-01-06 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* gcc.c-torture/compile/pr42632.c: New testcase.
|
||||
|
||||
2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR target/42542
|
||||
|
16
gcc/testsuite/gcc.c-torture/compile/pr42632.c
Normal file
16
gcc/testsuite/gcc.c-torture/compile/pr42632.c
Normal file
@ -0,0 +1,16 @@
|
||||
static inline __attribute__((always_inline)) int
|
||||
__pskb_trim(void)
|
||||
{
|
||||
return ___pskb_trim();
|
||||
}
|
||||
static inline __attribute__((always_inline))
|
||||
int pskb_trim(void)
|
||||
{
|
||||
return __pskb_trim();
|
||||
}
|
||||
int ___pskb_trim(void)
|
||||
{
|
||||
pskb_trim();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user