diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2012-05-22 18:18:06 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2012-05-22 18:18:06 +0000 |
commit | 08c5bca9c7b7bd8305eb83ea38266fe79d779ac2 (patch) | |
tree | f9bc9976dd20054e7e008a21220ec3ccb0c76e64 /contrib/gcc | |
parent | e30345e790fa8291cdbe7339b10791ed81021fbe (diff) | |
download | src-08c5bca9c7b7bd8305eb83ea38266fe79d779ac2.tar.gz src-08c5bca9c7b7bd8305eb83ea38266fe79d779ac2.zip |
Do not incorrectly warn when printing a quad_t using "%qd" on 64-bit platforms.
Notes
Notes:
svn path=/head/; revision=235797
Diffstat (limited to 'contrib/gcc')
-rw-r--r-- | contrib/gcc/c-format.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc/c-format.c b/contrib/gcc/c-format.c index cc3f9be7ae40..75eb9bba53cc 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 }, |