Subject: Re: port-xen/29887: sysctl kern.consdev coredumps
To: James Chacon <>
From: Nathan J. Williams <>
List: tech-userlevel
Date: 06/17/2005 18:45:18
James Chacon <> writes:

> On Fri, Jun 17, 2005 at 03:26:53PM -0700, Jason Thorpe wrote:
> > 
> > 
> > IT IS NOT A BUG.  GCC is perfectly within its rights to do what it is  
> > doing.  Maybe people should stop passing NULL pointers to printf() in  
> > the first place?
> I disagree there. Where is it stated in the standard the compiler
> is allowed to "optimize" calls to function A to map instead to function B
> entirely under the covers for me?

Because the effect of the functions are also part of the standard, so
the compiler is allowed to perform transformations that preserve the
effect described by the program. The language isn't about "calling
functions", it's about "making effects happen".

        - Nathan