[Bug target/40463] New: linux-eabi.h:79:36: error: identifier "not" is a special operator name in C++

danglin at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jun 16 17:28:00 GMT 2009


/home/dave/gnu/gcc/objdir/./prev-gcc/xgcc
-B/home/dave/gnu/gcc/objdir/./prev-gcc
/ -B/home/dave/opt/gnu/gcc/gcc-4.5.0/armv5tejl-unknown-linux-gnueabi/bin/
-B/hom
e/dave/opt/gnu/gcc/gcc-4.5.0/armv5tejl-unknown-linux-gnueabi/bin/
-B/home/dave/o
pt/gnu/gcc/gcc-4.5.0/armv5tejl-unknown-linux-gnueabi/lib/ -isystem
/home/dave/op
t/gnu/gcc/gcc-4.5.0/armv5tejl-unknown-linux-gnueabi/include -isystem
/home/dave/opt/gnu/gcc/gcc-4.5.0/armv5tejl-unknown-linux-gnueabi/sys-include   
-c  -g -O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE
-I. -Ibuild -I../../gcc/gcc -I../../gcc/gcc/build -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I/home/dave/opt/gnu/include 
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/dpd
-I../libdecnumber   -I/home/dave/opt/gnu/include \
                -o build/genconstants.o ../../gcc/gcc/genconstants.c
cc1: warnings being treated as errors
In file included from ./tm.h:17:0,
                 from ../../gcc/gcc/genconstants.c:31:
../../gcc/gcc/config/arm/linux-eabi.h:79:36: error: identifier "not" is a
special operator name in C++

/* Clear the instruction cache from `beg' to `end'.  This is
   implemented in lib1funcs.asm, so ensure an error if this definition
   is used.  */
#undef  CLEAR_INSN_CACHE
#define CLEAR_INSN_CACHE(BEG, END) not used

I've classified this as a target bug, but it is not clear that this error
should trigger if the macro is not used.


-- 
           Summary: linux-eabi.h:79:36: error: identifier "not" is a special
                    operator name in C++
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: armv5tejl-unknown-linux-gnueabi
  GCC host triplet: armv5tejl-unknown-linux-gnueabi
GCC target triplet: armv5tejl-unknown-linux-gnueabi


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



More information about the Gcc-bugs mailing list