From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2897 invoked by alias); 20 Nov 2012 02:57:39 -0000 Received: (qmail 2872 invoked by uid 22791); 20 Nov 2012 02:57:38 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hiauly1.hia.nrc.ca (HELO hiauly1.hia.nrc.ca) (132.246.10.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Nov 2012 02:57:33 +0000 Received: by hiauly1.hia.nrc.ca (Postfix, from userid 1000) id 1DC754FF3; Mon, 19 Nov 2012 21:57:29 -0500 (EST) Date: Tue, 20 Nov 2012 02:57:00 -0000 From: John David Anglin To: Eric Botcazou , gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Subject: Re: [5/8] Tweak bitfield alignment handling Message-ID: <20121120025727.GA15288@hiauly1.hia.nrc.ca> Reply-To: John David Anglin References: <87k3u3eybu.fsf@talisman.home> <87y5ijdj00.fsf@talisman.home> <1588464.rhT82gxiiJ@polaris> <87ip92x17v.fsf@talisman.default> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87ip92x17v.fsf@talisman.default> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg01636.txt.bz2 On Sun, 18 Nov 2012, Richard Sandiford wrote: > HOST_WIDE_INT start = bitpos_ - (bitpos_ % unit); > if (bitregion_start_ && start < bitregion_start_) > break; > - if (bitregion_end_ && start + unit > bitregion_end_ + 1) > + if (start + unit > bitregion_end_ + 1) This causes: /home/dave/gnu/gcc/objdir/./prev-gcc/g++ -B/home/dave/gnu/gcc/objdir/./prev-gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.8.0/hppa-linux-gnu/bin/ -nostdinc++ -B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/src/.libs -B/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs -I/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu -I/home/dave/gnu/gcc /objdir/prev-hppa-linux-gnu/libstdc++-v3/include -I/home/dave/gnu/gcc/gcc/libstdc++-v3/libsupc++ -L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/sr c/.libs -L/home/dave/gnu/gcc/objdir/prev-hppa-linux-gnu/libstdc++-v3/libsupc++/.libs -c -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tabl es -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribut e -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../../g cc/gcc/../include -I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libdecnu mber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/gcc/../li bbacktrace ../../gcc/gcc/stor-layout.c -o stor-layout.o../../gcc/gcc/stor-layout.c: In member function 〘bool bit_field_mode_iterator::n ext_mode(machine_mode*)〙: ../../gcc/gcc/stor-layout.c:2690:43: error: comparison between signed and unsign ed integer expressions [-Werror=sign-compare] if (start + unit > bitregion_end_ + 1) ^ cc1plus: all warnings being treated as errors Dave -- J. David Anglin dave.anglin@nrc-cnrc.gc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6602)