public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/40463]  New: linux-eabi.h:79:36: error: identifier "not" is a special operator name in C++
@ 2009-06-16 17:28 danglin at gcc dot gnu dot org
  2009-06-17  8:30 ` [Bug target/40463] " ramana at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: danglin at gcc dot gnu dot org @ 2009-06-16 17:28 UTC (permalink / raw)
  To: gcc-bugs

/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


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

* [Bug target/40463] linux-eabi.h:79:36: error: identifier "not" is a special operator name in C++
  2009-06-16 17:28 [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
@ 2009-06-17  8:30 ` ramana at gcc dot gnu dot org
  2009-06-17 10:13 ` joseph at codesourcery dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-06-17  8:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from ramana at gcc dot gnu dot org  2009-06-17 08:29 -------
Could you specify which version of the source tree this was ? 


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug target/40463] linux-eabi.h:79:36: error: identifier "not" is a special operator name in C++
  2009-06-16 17:28 [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
  2009-06-17  8:30 ` [Bug target/40463] " ramana at gcc dot gnu dot org
@ 2009-06-17 10:13 ` joseph at codesourcery dot com
  2009-06-17 15:38 ` dave at hiauly1 dot hia dot nrc dot ca
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: joseph at codesourcery dot com @ 2009-06-17 10:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from joseph at codesourcery dot com  2009-06-17 10:13 -------
Subject: Re:  linux-eabi.h:79:36: error: identifier "not"
 is a special operator name in C++

On Wed, 17 Jun 2009, ramana at gcc dot gnu dot org wrote:

> Could you specify which version of the source tree this was ? 

This is trunk, version 147956 or later.  Using not_used instead of "not 
used" would suffice to fix this, but the -Wc++-compat warning probably 
should be smarter; there's no need to care about the expansions of unused 
macros like this.


-- 


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


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

* [Bug target/40463] linux-eabi.h:79:36: error: identifier "not" is a special operator name in C++
  2009-06-16 17:28 [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
  2009-06-17  8:30 ` [Bug target/40463] " ramana at gcc dot gnu dot org
  2009-06-17 10:13 ` joseph at codesourcery dot com
@ 2009-06-17 15:38 ` dave at hiauly1 dot hia dot nrc dot ca
  2009-06-22 12:43 ` ramana at gcc dot gnu dot org
  2009-06-22 13:05 ` ramana at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2009-06-17 15:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dave at hiauly1 dot hia dot nrc dot ca  2009-06-17 15:38 -------
Subject: Re:  linux-eabi.h:79:36: error: identifier "not" is a special operator
name in C++

> > Could you specify which version of the source tree this was ? 
> 
> This is trunk, version 147956 or later.  Using not_used instead of "not 
> used" would suffice to fix this, but the -Wc++-compat warning probably 
> should be smarter; there's no need to care about the expansions of unused 
> macros like this.

I changed the define in my tree to "NOT USED" to avoid this.

Dave


-- 


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


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

* [Bug target/40463] linux-eabi.h:79:36: error: identifier "not" is a special operator name in C++
  2009-06-16 17:28 [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
                   ` (2 preceding siblings ...)
  2009-06-17 15:38 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2009-06-22 12:43 ` ramana at gcc dot gnu dot org
  2009-06-22 13:05 ` ramana at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-06-22 12:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ramana at gcc dot gnu dot org  2009-06-22 12:43 -------
Subject: Bug 40463

Author: ramana
Date: Mon Jun 22 12:43:23 2009
New Revision: 148791

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148791
Log:
Fix target/40463
2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR target/40463
        * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/arm/linux-eabi.h


-- 


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


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

* [Bug target/40463] linux-eabi.h:79:36: error: identifier "not" is a special operator name in C++
  2009-06-16 17:28 [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
                   ` (3 preceding siblings ...)
  2009-06-22 12:43 ` ramana at gcc dot gnu dot org
@ 2009-06-22 13:05 ` ramana at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-06-22 13:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ramana at gcc dot gnu dot org  2009-06-22 13:05 -------
hence fixed.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-06-22 13:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-16 17:28 [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
2009-06-17  8:30 ` [Bug target/40463] " ramana at gcc dot gnu dot org
2009-06-17 10:13 ` joseph at codesourcery dot com
2009-06-17 15:38 ` dave at hiauly1 dot hia dot nrc dot ca
2009-06-22 12:43 ` ramana at gcc dot gnu dot org
2009-06-22 13:05 ` ramana at gcc dot gnu dot 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).