This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/35618] [4.3 regression] ICE in cgraph_estimate_size_after_inlining, at ipa-inline.c:188



------- Comment #8 from rguenth at gcc dot gnu dot org  2008-05-23 14:35 -------
Confirmed.

Testcase, -Os -fno-unit-at-a-time

static void __resched_task(void *p, int tif_bit);
static inline __attribute__((always_inline))
void resched_task(void *p) {  __resched_task(p, 2);  }
static void __resched_task(void *p, int tif_bit) { }
void check_preempt_curr_idle(void *p)
{
  resched_task(p);
}

if you put an inline onto the definition of __resched_task the testcase
also ICEs for -O and -O2, so quite likely we are more agressive with -Os
inlining but decide so after-the-fact which confuses the size estimates.

Honza, can you please have a look here?


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|other                       |tree-optimization
     Ever Confirmed|0                           |1
  GCC build triplet|i486-linux-gnu              |
   GCC host triplet|i486-linux-gnu              |
 GCC target triplet|i486-linux-gnu              |
   Last reconfirmed|0000-00-00 00:00:00         |2008-05-23 14:35:53
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35618


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]