This is the mail archive of the gcc-patches@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]

Re: optimization/902: x86 optimization bug with sibling call and -fomit-frame-pointer


On Tue, Nov 28, 2000 at 04:19:23PM -0800, Richard Henderson wrote:
> On Mon, Nov 27, 2000 at 10:06:43PM +1100, Fergus Henderson wrote:
> > 		static void empty(void)
> > 		{
> > 		}
> > 
> > 		static void foo (int a, int * b, int c, int * d)
> > 		{
> > 		  malloc(20);
> > 		  empty();
> > 		}
> 
> We recognize that empty does nothing and mark it CONST.

Would it be practical to recognize that empty does nothing, and not
call it at all?  This could be as simple as marking it to-be-inlined.

zw

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