This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] recgonize SGI compiler in testsuite/lib/gdb.exp
- From: Paul Gilliam <pgilliam at us dot ibm dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: Daniel Jacobowitz <drow at false dot org>
- Date: Fri, 15 Apr 2005 14:40:33 -0800
- Subject: Re: [patch] recgonize SGI compiler in testsuite/lib/gdb.exp
- References: <200504081406.13587.pgilliam@us.ibm.com> <20050414193655.GC19792@nevyn.them.org>
- Reply-to: pgilliam at us dot ibm dot com
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