This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Latest gcc/cygwin - bug in %e format specifier?


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

testit.c

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]