Latest gcc/cygwin - bug in %e format specifier?
Richard Stanton
stanton@Haas.Berkeley.EDU
Thu Jun 15 09:52:00 GMT 2000
The latest net release of gcc seems to have a slight bug in the %e print
format specifier. It prints garbage when you try to print a variable whose
value is zero.
For example, attached is a (very) short program that does nothing but print
two variables, with values 0 and 1 respectively. I'd show the output, but it
contains several null characters which don't seem to cut/paste very well.
The basic result is that the 1 variable works fine. The zero variable prints
stuff it shouldn't.
To test, just run
"gcc testit.c -o testit"
Then run testit. Optimizations don't seem to matter.
Richard Stanton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testit.c
Type: text/x-c
Size: 173 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20000615/2a6d2f4e/attachment.bin>
More information about the Cygwin
mailing list