This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

pending_lang_change duplication?



There are two definitions of pending_lang_change:

In cp/lex.c:

  /* Pending language change.
     Positive is push count, negative is pop count.  */
  int pending_lang_change = 0;

In c-lex.c:

  int pending_lang_change; /* If we need to switch languages - C++ only */

Both are linked into cc1plus.  I don't know if this is a problem or
not, but it is confusing, and the AIX linker warns about it.  Are
these supposed to be the same variable?  If so, let's annihilate the
cp/lex.c version.  If not, we need to rename one of them!

Thanks,

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]