This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.0: Troubling warning in dwarf2out.c
- To: gcc-bugs at gcc dot gnu dot org
- Subject: 3.0: Troubling warning in dwarf2out.c
- From: Brad Lucier <lucier at math dot purdue dot edu>
- Date: Fri, 18 May 2001 12:35:13 -0500 (EST)
- Cc: lucier at math dot purdue dot edu (Brad Lucier), gcc-patches at gcc dot gnu dot org
On the 3.0 branch, there are now warnings:
../../gcc/dwarf2out.c: In function `output_call_frame_info':
../../gcc/dwarf2out.c:1868: warning: int format, long unsigned int arg (arg 4)
on sparc-sun-solaris2.8 and
../../gcc/dwarf2out.c: In function `output_call_frame_info':
../../gcc/dwarf2out.c:1868: warning: int format, different type arg (arg 4)
on alphaev6-unknown-linux-gnu. My uneducated opinion is that gcc-3.0 should
not be pushed out the door with this warning; it seems that on a machine
with 32-bit ints and 64-bit long ints it could cause real problems.
I suggested a patch for this in
http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01255.html
for the trunk, but rth didn't seem to like the patch and it never
got installed. (More accurately, rth suggested a different approach
which I found hard to believe [special handling for the solaris version
of ASM_OUTPUT_INTERNAL_LABEL that is different from how it is handled
in all other systems I could find] and the thread died.)
Now that the same problem appears on the 3.0 branch I think it should
be fixed somehow.
Brad Lucier