constant string changed
Robert Dewar
dewar@adacore.com
Wed Oct 6 23:55:00 GMT 2010
On 10/6/2010 6:54 PM, Matt Thomas wrote:
>
> 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<nhphung@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.
I would have thought that configure would automatically know
there was no puts, and not do the optimization if no puts
is available???
More information about the Gcc
mailing list