optimizing out string functions when the string contains a NUL
Sebastian Huber
sebastian.huber@embedded-brains.de
Wed Jun 20 15:41:00 GMT 2012
On 06/20/2012 05:39 PM, Sebastian Huber wrote:
> On 06/20/2012 05:32 PM, ohav chochmah wrote:
>> in short, the printf was removed but not the puts. which left me wondering why?
>
> Maybe because puts() has side-effects:
>
> http://pubs.opengroup.org/onlinepubs/009696799/functions/puts.html
>
Hm, printf() has the same side-effects.
--
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the Gcc-help
mailing list