inlining default
Bo Thorsen
bo@sonofthor.dk
Wed Dec 12 07:56:00 GMT 2001
On Wednesday 12 December 2001 15:00, Jason Merrill wrote:
> It seems that Neil's 2001-11-15 changes to option parsing had a side effect
> of turning on tree inlining at -O0 for C and C++ unless suppressed with
> -fno-inline, because we now set flag_tree_inline from flag_no_inline before
> setting flag_no_inline from optimize. Is this what we want? I would
> prefer to leave it off by default with -O0, but many compilers turn it on
> unless specifically disabled. What do other people think?
Is this related to the ICE I reported with latest CVS:
*** ice.c ***
typedef struct { long p; } pt;
inline pt f(pt _p)
{
long p = _p.p;
return (pt) { (p) };
}
static int mmap_mem(void)
{
pt p;
p = f(p);
return 0;
}
*** ice.c ***
"gcc ice.c" gives an ICE on i386, ia-64 and x86-64 (at least) and prevents
kernel, glibc and X compilation. Remove the inline keyword and it does fine.
I have been hunting for the exact patch that started this, but you came with
this so I thought I would ask.
Bo.
--
Bo Thorsen | Praestevejen 4
Free software developer | 5290 Marslev
SuSE Labs | Denmark
More information about the Gcc
mailing list