This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
soft-fp/fixtfsi.c:44:3: warning: left shift count >= width of type
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- To: gcc at gcc dot gnu dot org
- Cc: joseph at codesourcery dot com
- Date: Mon, 20 Dec 2010 21:21:38 -0500
- Subject: soft-fp/fixtfsi.c:44:3: warning: left shift count >= width of type
On x86_64-apple-darwin10, we see the warnings...
/Users/howarth/darwin_objdir/./gcc/xgcc -B/Users/howarth/darwin_objdir/./gcc/ -B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/ -B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem /Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem /Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include -g -O2 -m32 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector -I. -I. -I../../.././gcc -I../../../../gcc/libgcc -I../../../../gcc/libgcc/. -I../../../../gcc/libgcc/../gcc -I../../../../gcc/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -Wno-missing-prototypes -Wno-type-limits -o fixtfsi.o -MT fixtfsi.o -MD -MP -MF fixtfsi.dep -fexceptions -c ../../../../gcc/libgcc/../gcc/config/soft-fp/fixtfsi.c -fvisibility=hidden -DHIDE_EXPORTS
../../../../gcc/libgcc/../gcc/config/soft-fp/unordtf2.c: In function '__unordtf2':
../../../../gcc/libgcc/../gcc/config/soft-fp/unordtf2.c:39:1: warning: variable 'B_s' set but not used [-Wunused-but-set-variable]
../../../../gcc/libgcc/../gcc/config/soft-fp/unordtf2.c:38:1: warning: variable 'A_s' set but not used [-Wunused-but-set-variable]
../../../../gcc/libgcc/../gcc/config/soft-fp/multf3.c: In function '__multf3':
../../../../gcc/libgcc/../gcc/config/soft-fp/multf3.c:47:3: warning: 'R_e' may be used uninitialized in this function [-Wuninitialized]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixtfsi.c: In function '__fixtfsi':
../../../../gcc/libgcc/../gcc/config/soft-fp/fixtfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixtfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixtfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixtfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixtfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixtfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixtfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixtfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
as well as
/libgcc/../gcc/config/soft-fp/fixunstfsi.c -fvisibility=hidden -DHIDE_EXPORTS
/Users/howarth/darwin_objdir/./gcc/xgcc -B/Users/howarth/darwin_objdir/./gcc/ -B/Users/howarth/dist/x86_64-apple-darwin10.5.0/bin/ -B/Users/howarth/dist/x86_64-apple-darwin10.5.0/lib/ -isystem /Users/howarth/dist/x86_64-apple-darwin10.5.0/include -isystem /Users/howarth/dist/x86_64-apple-darwin10.5.0/sys-include -g -O2 -m32 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector -I. -I. -I../../.././gcc -I../../../../gcc/libgcc -I../../../../gcc/libgcc/. -I../../../../gcc/libgcc/../gcc -I../../../../gcc/libgcc/../include -DHAVE_CC_TLS -DUSE_EMUTLS -Wno-missing-prototypes -Wno-type-limits -o floatsitf.o -MT floatsitf.o -MD -MP -MF floatsitf.dep -fexceptions -c ../../../../gcc/libgcc/../gcc/config/soft-fp/floatsitf.c -fvisibility=hidden -DHIDE_EXPORTS
../../../gcc/libgcc/../gcc/config/soft-fp/floatunsitf.c: In function '__floatunsitf':
../../../gcc/libgcc/../gcc/config/soft-fp/floatunsitf.c:45:3: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixunstfsi.c: In function '__fixunstfsi':
../../../../gcc/libgcc/../gcc/config/soft-fp/fixunstfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixunstfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixunstfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixunstfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixunstfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixunstfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixunstfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
../../../../gcc/libgcc/../gcc/config/soft-fp/fixunstfsi.c:44:3: warning: left shift count >= width of type [enabled by default]
Is this warning "left shift count >= width of type" expected for the code in question or a bug?
Jack