public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/46276] New: cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror]
@ 2010-11-02 20:33 danglin at gcc dot gnu.org
  2010-11-02 20:36 ` [Bug bootstrap/46276] " danglin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2010-11-02 20:33 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46276

           Summary: cppbuiltin.c:154:7: error: 'or' of unmatched not-equal
                    tests is always 1 [-Werror]
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: danglin@gcc.gnu.org
              Host: armv5tejl-unknown-linux-gnueabi
            Target: armv5tejl-unknown-linux-gnueabi
             Build: armv5tejl-unknown-linux-gnueabi


/home/dave/gnu/gcc/objdir/./prev-gcc/xgcc
-B/home/dave/gnu/gcc/objdir/./prev-gcc
/ -B/home/dave/opt/gnu/gcc/gcc-4.6/armv5tejl-unknown-linux-gnueabi/bin/
-B/home/
dave/opt/gnu/gcc/gcc-4.6/armv5tejl-unknown-linux-gnueabi/bin/
-B/home/dave/opt/g
nu/gcc/gcc-4.6/armv5tejl-unknown-linux-gnueabi/lib/ -isystem
/home/dave/opt/gnu/
gcc/gcc-4.6/armv5tejl-unknown-linux-gnueabi/include -isystem
/home/dave/opt/gnu/
gcc/gcc-4.6/armv5tejl-unknown-linux-gnueabi/sys-include      -g -O2 -gtoggle
-DI
N_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-proto
types -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-
Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat  
-DHAVE_CONF
IG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/../include
-I../.
./gcc/gcc/../libcpp/include -I/home/dave/opt/gnu/include 
-I../../gcc/gcc/../lib
decnumber -I../../gcc/gcc/../libdecnumber/dpd -I../libdecnumber   
-I/home/dave/
opt/gnu/include \
         
-DGCC_INCLUDE_DIR=\"/home/dave/opt/gnu/gcc/gcc-4.6/lib/gcc/armv5tejl-u
nknown-linux-gnueabi/4.6.0/include\"
-DFIXED_INCLUDE_DIR=\"/home/dave/opt/gnu/gc
c/gcc-4.6/lib/gcc/armv5tejl-unknown-linux-gnueabi/4.6.0/include-fixed\"
-DGPLUSP
LUS_INCLUDE_DIR=\"/home/dave/opt/gnu/gcc/gcc-4.6/lib/gcc/armv5tejl-unknown-linux
-gnueabi/4.6.0/../../../../include/c++/4.6.0\"
-DGPLUSPLUS_TOOL_INCLUDE_DIR=\"/h
ome/dave/opt/gnu/gcc/gcc-4.6/lib/gcc/armv5tejl-unknown-linux-gnueabi/4.6.0/../..
/../../include/c++/4.6.0/armv5tejl-unknown-linux-gnueabi\"
-DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"/home/dave/opt/gnu/gcc/gcc-4.6/lib/gcc/armv5tejl-unknown-linux-gnueabi/4.6.0/../../../../include/c++/4.6.0/backward\"
-DLOCAL_INCLUDE_DIR=\"/usr/local/include\"
-DCROSS_INCLUDE_DIR=\"/home/dave/opt/gnu/gcc/gcc-4.6/lib/gcc/armv5tejl-unknown-linux-gnueabi/4.6.0/../../../../armv5tejl-unknown-linux-gnueabi/sys-include\"
-DTOOL_INCLUDE_DIR=\"/home/dave/opt/gnu/gcc/gcc-4.6/lib/gcc/armv5tejl-unknown-linux-gnueabi/4.6.0/../../../../armv5tejl-unknown-linux-gnueabi/include\"
-DPREFIX=\"/home/dave/opt/gnu/gcc/gcc-4.6/\"
-DSTANDARD_EXEC_PREFIX=\"/home/dave/opt/gnu/gcc/gcc-4.6/lib/gcc/\" 
-DBASEVER="\"4.6.0\"" \
          -c ../../gcc/gcc/cppbuiltin.c -o cppbuiltin.o
../../gcc/gcc/cppbuiltin.c: In function 'define_builtin_macros_for_type_sizes':
../../gcc/gcc/cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is
always 1 [-Werror]
cc1: all warnings being treated as errors

make[3]: *** [cppbuiltin.o] Error 1
make[3]: Leaving directory `/home/dave/gnu/gcc/objdir/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/home/dave/gnu/gcc/objdir'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/dave/gnu/gcc/objdir'
make: *** [bootstrap] Error 2

Occurs in stage2.

-bash-3.2$ prev-gcc/xgcc -Bprev-gcc/ -v
Reading specs from prev-gcc/specs
COLLECT_GCC=prev-gcc/xgcc
COLLECT_LTO_WRAPPER=prev-gcc/lto-wrapper
Target: armv5tejl-unknown-linux-gnueabi
Configured with: ../gcc/configure --host=armv5tejl-unknown-linux-gnueabi
--target=armv5tejl-unknown-linux-gnueabi
--build=armv5tejl-unknown-linux-gnueabi
--enable-languages=c,c++,fortran,objc,obj-c++ --enable-checking=release
--enable-shared --enable-threads --disable-multilib --disable-libmudflap
--disable-libssp --enable-symvers=gnu --enable-__cxa_atexit
--disable-libstdcxx-pch --prefix=/home/dave/opt/gnu/gcc/gcc-4.6
--with-gmp=/home/dave/opt/gnu --with-as=/home/dave/opt/gnu/bin/as
--with-ld=/home/dave/opt/gnu/bin/ld
Thread model: posix
gcc version 4.6.0 20101101 (experimental) [trunk revision 166133] (GCC)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug bootstrap/46276] cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror]
  2010-11-02 20:33 [Bug bootstrap/46276] New: cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror] danglin at gcc dot gnu.org
@ 2010-11-02 20:36 ` danglin at gcc dot gnu.org
  2010-11-15 11:34 ` [Bug target/46276] " mikpe at it dot uu.se
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: danglin at gcc dot gnu.org @ 2010-11-02 20:36 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46276

--- Comment #1 from John David Anglin <danglin at gcc dot gnu.org> 2010-11-02 20:36:06 UTC ---
      /* Assert that we're only dealing with the PDP11 case.  */
      gcc_assert (!BYTES_BIG_ENDIAN && WORDS_BIG_ENDIAN);


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/46276] cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror]
  2010-11-02 20:33 [Bug bootstrap/46276] New: cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror] danglin at gcc dot gnu.org
  2010-11-02 20:36 ` [Bug bootstrap/46276] " danglin at gcc dot gnu.org
@ 2010-11-15 11:34 ` mikpe at it dot uu.se
  2010-11-15 13:12 ` manu at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mikpe at it dot uu.se @ 2010-11-15 11:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46276

--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2010-11-15 11:20:13 UTC ---
Created attachment 22397
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22397
preliminary fix for problematic assert

Simply splitting the && components of the assert into two separate asserts
solves the bootstrap problem for me on armv5tel-linux-gnueabi.

The problem was introduced sometime between 20101016 and 20101023.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/46276] cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror]
  2010-11-02 20:33 [Bug bootstrap/46276] New: cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror] danglin at gcc dot gnu.org
  2010-11-02 20:36 ` [Bug bootstrap/46276] " danglin at gcc dot gnu.org
  2010-11-15 11:34 ` [Bug target/46276] " mikpe at it dot uu.se
@ 2010-11-15 13:12 ` manu at gcc dot gnu.org
  2010-12-12 20:59 ` mikpe at it dot uu.se
  2011-02-09  9:40 ` ibolton at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: manu at gcc dot gnu.org @ 2010-11-15 13:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46276

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2010-11-15 12:50:39 UTC ---
I think this warning should be deleted or moved to the front-end. There should
be no warnings in fold-const.c as much as this is possible. There is already a
similar warning in Wlogical-op in c-common.h but it seems it doesn't cover this
case. It should.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/46276] cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror]
  2010-11-02 20:33 [Bug bootstrap/46276] New: cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror] danglin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2010-11-15 13:12 ` manu at gcc dot gnu.org
@ 2010-12-12 20:59 ` mikpe at it dot uu.se
  2011-02-09  9:40 ` ibolton at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: mikpe at it dot uu.se @ 2010-12-12 20:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46276

--- Comment #4 from Mikael Pettersson <mikpe at it dot uu.se> 2010-12-12 20:59:43 UTC ---
Fixed when the dupe PR46456 was fixed.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/46276] cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror]
  2010-11-02 20:33 [Bug bootstrap/46276] New: cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror] danglin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2010-12-12 20:59 ` mikpe at it dot uu.se
@ 2011-02-09  9:40 ` ibolton at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ibolton at gcc dot gnu.org @ 2011-02-09  9:40 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46276

Ian Bolton <ibolton at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |ibolton at gcc dot gnu.org
         Resolution|                            |DUPLICATE

--- Comment #5 from Ian Bolton <ibolton at gcc dot gnu.org> 2011-02-09 09:38:57 UTC ---
This is a duplicate of a fixed bug (PR46456), so marking RESOLVED DUPLICATE.

*** This bug has been marked as a duplicate of bug 46456 ***


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-09  9:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-02 20:33 [Bug bootstrap/46276] New: cppbuiltin.c:154:7: error: 'or' of unmatched not-equal tests is always 1 [-Werror] danglin at gcc dot gnu.org
2010-11-02 20:36 ` [Bug bootstrap/46276] " danglin at gcc dot gnu.org
2010-11-15 11:34 ` [Bug target/46276] " mikpe at it dot uu.se
2010-11-15 13:12 ` manu at gcc dot gnu.org
2010-12-12 20:59 ` mikpe at it dot uu.se
2011-02-09  9:40 ` ibolton at gcc dot gnu.org

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).