[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2014-03-06 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743 --- Comment #15 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Thu Mar 6 08:11:20 2014 New Revision: 208371 URL: http://gcc.gnu.org/viewcvs?rev=208371root=gccview=rev Log: Backport from mainline 2014-02-19 Jakub

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2014-02-19 Thread joseph at codesourcery dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743 --- Comment #11 from joseph at codesourcery dot com joseph at codesourcery dot com --- Yes, we could do something like that (but I also think it's time to put the targets without this type information on the deprecation list and warn their

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2014-02-19 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743 --- Comment #12 from Jakub Jelinek jakub at gcc dot gnu.org --- Created attachment 32173 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32173action=edit gcc49-pr37743.patch Untested fix. The deprecation can hopefully be done separately.

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2014-02-19 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2014-02-19 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743 --- Comment #14 from Jakub Jelinek jakub at gcc dot gnu.org --- Author: jakub Date: Wed Feb 19 22:27:40 2014 New Revision: 207924 URL: http://gcc.gnu.org/viewcvs?rev=207924root=gccview=rev Log: PR c/37743 * c-common.c

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2014-02-18 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added CC||jakub at gcc dot

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2013-11-30 Thread hp at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743 Hans-Peter Nilsson hp at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed|2009-03-31 20:40:20 |2013-12-1

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2012-05-01 Thread jyasskin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743 Jeffrey Yasskin jyasskin at gcc dot gnu.org changed: What|Removed |Added CC||jyasskin at

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2012-05-01 Thread jyasskin at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743 --- Comment #8 from Jeffrey Yasskin jyasskin at gcc dot gnu.org 2012-05-01 20:47:00 UTC --- Arguably, the bad diagnostic (reporting unsigned int!=unsigned int) is more serious than the bswap bug, since it may show up for other functions.

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2012-03-27 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added CC||hjl.tools at

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2010-06-11 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2010-06-11 14:56 --- *** Bug 44502 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2009-03-31 Thread jsm28 at gcc dot gnu dot org
--- Comment #4 from jsm28 at gcc dot gnu dot org 2009-03-31 20:40 --- Because my bug 448 patch isn't complete (doesn't give knowledge of the stdint.h types for all targets), it doesn't yet fix this issue; it defines c_uint32_type_node and c_uint64_type_node to be the normal C types used

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2008-10-07 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2008-10-07 13:22 --- I think the warning is desirable, the code isn't portable to non-32bit int targets. Wonder if we just shouldn't give a TYPE_NAME to uint32_type_node and uint64_type_node (__builtin_uint32_t and __builtin_uint64_t or

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2008-10-06 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-10-06 21:55 --- DEF_GCC_BUILTIN(BUILT_IN_BSWAP32, bswap32, BT_FN_UINT32_UINT32, ATTR_CONST_NOTHROW_LIST) This is caused by the fact __builtin_bswap32 uses uintSItype instead of the normal unsignedint types. --

[Bug c/37743] Bogus printf format warning with __builtin_bswap32.

2008-10-06 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-10-06 21:56 --- DEF_FUNCTION_TYPE_1 (BT_FN_UINT32_UINT32, BT_UINT32, BT_UINT32) DEF_PRIMITIVE_TYPE (BT_UINT32, uint32_type_node) Instead of using: DEF_PRIMITIVE_TYPE (BT_UINT, unsigned_type_node) But we need to use the 32bit