This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Eliminate gc.h warning


Howdy,

boehm-gc/include/gc.h generates the following warning:

 In file included from ../../../../gcc/libjava/java/lang/natObject.cc:282:
 ../../../../gcc/boehm-gc/include/gc.h:53:1: warning: "GC_LINUX_THREADS" redefined
 <command line>:12:1: warning: this is the location of the previous definition

The following patch eliminates this warning.

Bootstrapped and regression tested on powerpc-unknown-linux-gnu.

OK to commit?

-- 
Matt Kraai          kraai@alumni.cmu.edu          Debian GNU/Linux

	* include/gc.h: Do not define GC_LINUX_THREADS if it is
	already defined.

Index: boehm-gc/include/gc.h
===================================================================
RCS file: /cvs/gcc/gcc/boehm-gc/include/gc.h,v
retrieving revision 1.9
diff -3 -c -p -r1.9 gc.h
*** boehm-gc/include/gc.h	12 Feb 2002 04:37:56 -0000	1.9
--- boehm-gc/include/gc.h	2 Jul 2003 05:09:54 -0000
***************
*** 50,56 ****
  # define GC_OSF1_THREADS
  #endif
  #if defined(LINUX_THREADS)
! # define GC_LINUX_THREADS
  #endif
  #if defined(WIN32_THREADS)
  # define GC_WIN32_THREADS
--- 50,58 ----
  # define GC_OSF1_THREADS
  #endif
  #if defined(LINUX_THREADS)
! # if !defined(GC_LINUX_THREADS)
! #  define GC_LINUX_THREADS
! # endif
  #endif
  #if defined(WIN32_THREADS)
  # define GC_WIN32_THREADS


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