This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

Re: [patch] recgonize SGI compiler in testsuite/lib/gdb.exp


On Thursday 14 April 2005 12:36, Daniel Jacobowitz wrote:
> On Fri, Apr 08, 2005 at 01:06:13PM -0800, Paul Gilliam wrote:
> > This patch updates compiler.c and compiler.cc in testsuit/lib so that get_compiler_info will deal with the SGI compiler.
> > 
> > I don't have access to an SGI system, so this is un-tested:  I gleaned the info from on-line manuals.
> > 
> > -=# Paul #=-
> > 
> > 2005-04-09  Paul Gilliam  <pgilliam@us.ibm.com>
> > 
> > 	* lib/compiler.c: Detect SGI compiler and it's version.
> > 	* lib/compiler.cc:Likewise.
> 
> No patch attached.
> 

Opps!  here it is, whole this time:
--
2005-04-09  Paul Gilliam  <pgilliam@us.ibm.com>

	* lib/compiler.c: Detect SGI compiler and it's version.
	* lib/compiler.cc:Likewise.

Index: lib/compiler.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/compiler.c,v
retrieving revision 1.10
diff -c -3 -p -r1.10 compiler.c
*** lib/compiler.c      7 Mar 2005 18:57:57 -0000       1.10
--- lib/compiler.c      8 Apr 2005 20:59:31 -0000
*************** set compiler_info [join {hpacc __HP_aCC}
*** 70,72 ****
--- 70,77 ----
     numbers seperated by '.'s: currently "7.0.0.0" */
  set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
  #endif
+
+ #if defined (__sgi)
+ /* The sgi compiler defines _COMPILER_VERSION as xyz for version x.y.z */
+ set compile_info "sgi-[join [split _COMPILER_VERSION {}] -]"
+ #endif
Index: lib/compiler.cc
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/compiler.cc,v
retrieving revision 1.12
diff -c -3 -p -r1.12 compiler.cc
*** lib/compiler.cc     7 Mar 2005 18:57:57 -0000       1.12
--- lib/compiler.cc     8 Apr 2005 20:59:31 -0000
*************** set compiler_info [join {hpacc __HP_aCC}
*** 58,60 ****
--- 58,65 ----
     numbers seperated by '.'s: currently "7.0.0.0" */
  set need_a_set [regsub -all {\.} [join {xlc __xlc__} -] - compiler_info]
  #endif
+
+ #if defined (__sgi)
+ /* The sgi compiler defines _COMPILER_VERSION as xyz for version x.y.z */
+ set compile_info "sgi-[join [split _COMPILER_VERSION {}] -]"
+ #endif


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