From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30977 invoked by alias); 20 Sep 2012 13:46:28 -0000 Received: (qmail 30857 invoked by uid 48); 20 Sep 2012 13:45:55 -0000 From: "amylaar at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54640] New: arm_adjust_block_mem: signed/unsigned comparison Date: Thu, 20 Sep 2012 13:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amylaar at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-09/txt/msg01569.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54640 Bug #: 54640 Summary: arm_adjust_block_mem: signed/unsigned comparison Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: amylaar@gcc.gnu.org Blocks: 44756 Target: arm-wrs-vxworks, arm-netbsdelf g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-= rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attrib= ute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werr= or -fno-common -DHAVE_CONFIG_H -I. -I. -I ../../../gcc/gcc -I../../../gcc/gcc/. -I../../../gcc/gcc/../include -I../../../gcc/gcc/../libcpp/include -I../../../gcc/gcc/../libdecnumber -I../../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber \ ../../../gcc/gcc/config/arm/arm.c -o arm.o ../../../gcc/gcc/config/arm/arm.c: In function =E2=80=98int const_ok_for_di= mode_op(long int, rtx_code)=E2=80=99: ../../../gcc/gcc/config/arm/arm.c:2520:32: error: right shift count >=3D wi= dth of type [-Werror] HOST_WIDE_INT hi_val =3D (i >> 32) & 0xFFFFFFFF; ^ ../../../gcc/gcc/config/arm/arm.c: In function =E2=80=98void arm_block_move_unaligned_straight(rtx, rtx, long int, unsigned int)=E2=80= =99: ../../../gcc/gcc/config/arm/arm.c:11004:21: error: comparison between signed and unsigned integer expressions [-Werror=3Dsign-compare] for (i =3D 0; i < interleave_factor; i++) ^ ../../../gcc/gcc/config/arm/arm.c:11007:21: error: comparison between signed and unsigned integer expressions [-Werror=3Dsign-compare] for (i =3D 0; i < interleave_factor; i++) ^ ../../../gcc/gcc/config/arm/arm.c:11019:19: error: comparison between signed and unsigned integer expressions [-Werror=3Dsign-compare] for (i =3D 0; i < interleave_factor; i++) ^ ../../../gcc/gcc/config/arm/arm.c:11035:20: error: comparison between signed and unsigned integer expressions [-Werror=3Dsign-compare] for (j =3D 0; j < interleave_factor; j++) ^ ../../../gcc/gcc/config/arm/arm.c:11055:20: error: comparison between signed and unsigned integer expressions [-Werror=3Dsign-compare] for (j =3D 0; j < interleave_factor; j++) ^ In file included from ../../../gcc/gcc/config/arm/arm.c:26:0: ../../../gcc/gcc/config/arm/arm.c:11074:23: error: comparison between signed and unsigned integer expressions [-Werror=3Dsign-compare] gcc_assert (words < interleave_factor); ^ ../../../gcc/gcc/system.h:679:14: note: in definition of macro 'gcc_assert' ((void)(!(EXPR) ? fancy_abort (__FILE__, __LINE__, __FUNCTION__), 0 : 0= )) ^ In file included from ../../../gcc/gcc/config/arm/arm.c:26:0: ../../../gcc/gcc/config/arm/arm.c: In function =E2=80=98void arm_adjust_blo= ck_mem(rtx, long int, rtx_def**, rtx_def**)=E2=80=99: ../../../gcc/gcc/system.h:344:27: error: comparison between signed and unsi= gned integer expressions [-Werror=3Dsign-compare] #define MIN(X,Y) ((X) < (Y) ? (X) : (Y)) ^ ../../../gcc/gcc/config/arm/arm.c:11212:29: note: in expansion of macro 'MI= N' set_mem_align (*loop_mem, MIN (MEM_ALIGN (mem), length * BITS_PER_UNIT)); ^ cc1plus: all warnings being treated as errors make[2]: *** [arm.o] Error 1 rm gcj-dbtool.pod gccgo.pod jcf-dump.pod gcj.pod gcov.pod cpp.pod fsf-funding.pod gij.pod gc-analyze.pod grmic.pod gcc.pod gfortran.pod jv-convert.pod gfdl.pod make[2]: Leaving directory `/home/amylaar/fsf/multi/arm-wrs-vxworks/gcc'