public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "amylaar at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-54640-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54640 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-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -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 ‘int const_ok_for_dimode_op(long int, rtx_code)’: ../../../gcc/gcc/config/arm/arm.c:2520:32: error: right shift count >= width of type [-Werror] HOST_WIDE_INT hi_val = (i >> 32) & 0xFFFFFFFF; ^ ../../../gcc/gcc/config/arm/arm.c: In function ‘void arm_block_move_unaligned_straight(rtx, rtx, long int, unsigned int)’: ../../../gcc/gcc/config/arm/arm.c:11004:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] for (i = 0; i < interleave_factor; i++) ^ ../../../gcc/gcc/config/arm/arm.c:11007:21: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] for (i = 0; i < interleave_factor; i++) ^ ../../../gcc/gcc/config/arm/arm.c:11019:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] for (i = 0; i < interleave_factor; i++) ^ ../../../gcc/gcc/config/arm/arm.c:11035:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] for (j = 0; j < interleave_factor; j++) ^ ../../../gcc/gcc/config/arm/arm.c:11055:20: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] for (j = 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=sign-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 ‘void arm_adjust_block_mem(rtx, long int, rtx_def**, rtx_def**)’: ../../../gcc/gcc/system.h:344:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] #define MIN(X,Y) ((X) < (Y) ? (X) : (Y)) ^ ../../../gcc/gcc/config/arm/arm.c:11212:29: note: in expansion of macro 'MIN' 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'
next reply other threads:[~2012-09-20 13:46 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-09-20 13:46 amylaar at gcc dot gnu.org [this message] 2012-10-23 16:36 ` [Bug target/54640] " ramana at gcc dot gnu.org 2013-02-26 14:52 ` amylaar at gcc dot gnu.org 2013-02-28 9:34 ` amylaar at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-54640-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).