On Oct 6, 2010, at 3:02 PM, Robert Dewar wrote: > On 10/6/2010 5:43 PM, Richard Guenther wrote: >> On Wed, Oct 6, 2010 at 11:34 PM, Phung Nguyen<nhph...@gmail.com> wrote: >>> How can I turn this optimization off? >> >> Use -fno-builtin-printf. > > I'm curious, it's obviously a correct optimization, so why > would you want to turn if off?
You can also use -ffreestanding to disable it (and other similar ones). If you are working in an environment which only has printf, the conversion to puts is not helpful.