This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug regression/18246] struct-layout-1 generator broken on i686-pc-mingw32
- From: "dannysmith at users dot sourceforge dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2004 08:01:06 -0000
- Subject: [Bug regression/18246] struct-layout-1 generator broken on i686-pc-mingw32
- References: <20041031065051.18246.aaronavay62@aaronwl.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dannysmith at users dot sourceforge dot net 2004-10-31 08:01 -------
MSVC printf does not grok %ll formatting spec, but interprets that as single %l,
Try using a replacement printf or change all occurences of %ll to %I64.
This problem (and a hack to fix within gcc) has been reported earlier
http://gcc.gnu.org/ml/gcc-patches/2003-07/msg01479.html
but the hack is a maintenance burden since we have to keep monitoring for usage
of %ll and add a -Wno-format for these modules While testing I have done the
lazy thing and just replaced printf/scanf functions with ones that understand %
ll
Danny
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18246