This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30392] [4.3 Regression] ice for legal kernel code with -Os
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2007 19:43:37 -0000
- Subject: [Bug tree-optimization/30392] [4.3 Regression] ice for legal kernel code with -Os
- References: <bug-30392-9596@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-01-06 19:43 -------
Reduced testcase:
typedef unsigned long size_t;
static inline __attribute__((always_inline)) __attribute__((always_inline)) int
index_of(const int size)
{
return __builtin_constant_p(size);
}
static inline int setup_cpu_cache(int t)
{
return index_of(2);
}
int f(void)
{
return setup_cpu_cache(0);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30392