summaryrefslogtreecommitdiffstats
path: root/contrib/gcc
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2012-05-22 18:18:06 +0000
committerobrien <obrien@FreeBSD.org>2012-05-22 18:18:06 +0000
commitafb1c7fc4d9ee295a81625a01bb89732e973d603 (patch)
treef9bc9976dd20054e7e008a21220ec3ccb0c76e64 /contrib/gcc
parenta25d879040293674b01528c3026cb54863172d8a (diff)
downloadFreeBSD-src-afb1c7fc4d9ee295a81625a01bb89732e973d603.zip
FreeBSD-src-afb1c7fc4d9ee295a81625a01bb89732e973d603.tar.gz
Do not incorrectly warn when printing a quad_t using "%qd" on 64-bit platforms.
Diffstat (limited to 'contrib/gcc')
-rw-r--r--contrib/gcc/c-format.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc/c-format.c b/contrib/gcc/c-format.c
index cc3f9be..75eb9bb 100644
--- a/contrib/gcc/c-format.c
+++ b/contrib/gcc/c-format.c
@@ -287,7 +287,11 @@ static const format_length_info printf_length_specs[] =
{
{ "h", FMT_LEN_h, STD_C89, "hh", FMT_LEN_hh, STD_C99 },
{ "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C9L },
+#ifdef __LP64__
+ { "q", FMT_LEN_l, STD_EXT, NULL, 0, 0 },
+#else
{ "q", FMT_LEN_ll, STD_EXT, NULL, 0, 0 },
+#endif
{ "L", FMT_LEN_L, STD_C89, NULL, 0, 0 },
{ "z", FMT_LEN_z, STD_C99, NULL, 0, 0 },
{ "Z", FMT_LEN_z, STD_EXT, NULL, 0, 0 },
OpenPOWER on IntegriCloud