This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37743] Bogus printf format warning with __builtin_bswap32.
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Oct 2008 13:22:54 -0000
- Subject: [Bug c/37743] Bogus printf format warning with __builtin_bswap32.
- References: <bug-37743-2018@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla 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 something
similar), then c-format would print that instead and the warning would be
clearer.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37743