putc broken

Richard Butler richardjcbutler at eircom.net
Fri Jan 11 17:49:14 PST 2002


Hi Peter,

In message <a03f5af74a.peter at moo.chocky.org>
          Peter Naulls <peter at chocky.org> posted:

> 
> 
> The putchar() macro in stdio.h is broken, as it evaluates the
> c parameter more than once.  The defintion of this function allows f to
> be evaluated more than once, but not c.  Failure of this macro can be
> see in a port of 'ls'.
> 
> Although there are macro solutions, it's probably best if the macro is
> simply deleted. 

So we can't use putchar() in ARM GCC 2.95.4 then?

Best Wishes,

Richard.

-- 
Richard James C. Butler @ Home
<richardjcbutler at eircom.net> -|- <http://homepage.eircom.net/~lrtc>
 _           _       *
|_) /^\ | | ( _ /^\  |          The RISC OS User Group of Ireland     
| \ \_/ (_) (_) \_/  |  <www.rougoi.riscos.org.uk> -|- <rougoi at eircom.net>

Frequently fishy rulers violently and quietly pick rigid children.



More information about the gcc mailing list