Re: Suspicious missing tail call opportunity

2013-01-06 Thread Andrew Pinski
On Sun, Jan 6, 2013 at 1:28 AM, Ye Joey wrote: > In following example, call to sbfoo isn't a tail call with -O2. GCC > analyzes local variable may be referenced in sbfoo. Is it a reasonable > analysis? In another word, is it a legal program that bar stores > address of local to a static variable,

Suspicious missing tail call opportunity

2013-01-06 Thread Ye Joey
In following example, call to sbfoo isn't a tail call with -O2. GCC analyzes local variable may be referenced in sbfoo. Is it a reasonable analysis? In another word, is it a legal program that bar stores address of local to a static variable, and then for sbfoo to access it? This issue cause a mis