This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
`quad' printf format specifier ?
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: `quad' printf format specifier ?
- From: Marc Espie <Marc dot Espie at liafa dot jussieu dot fr>
- Date: Sat, 6 Feb 1999 01:10:39 +0100
- Cc: millert at cvs dot openbsd dot org
What is the exact status of the quad format specifier in printf ("qd"
extension) ?
As far as I know, it is intended to handle 64 bits comfortably on all
machines, and was originally a bsd-ism (quad_t).
However, egcs (and gcc before that) treats it as equivalent to ll, which
is not always equivalent: openbsd-alpha is configured so that long is
64 bits, and hence quad_t is typedef'ed to long.
In that particular case, the printf-like attribute doesn't work as
intended.
I'm mainly seeking advice. Is this intentional ?
If not, we can whip up a simple patch to get the `right' behavior when
#if HOST_BITS_PER_LONG_INT == 64
--
Marc Espie
|anime, sf, juggling, unicycle, acrobatics, comics...
|AmigaOS, OpenBSD, C++, perl, Icon, PostScript...
| `real programmers don't die, they just get out of beta'