Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Allow altivec-{abi,regs}.c to be compiled by IBM's xlc compiler
@ 2005-03-09 20:56 Paul Gilliam
  2005-03-29 20:42 ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Gilliam @ 2005-03-09 20:56 UTC (permalink / raw)
  To: gdb-patches

2005-03-09  Paul Gilliam  <pgilliam@us.ibm.com>

        * gdb.arch/altivec-abi.exp: Check for compiler and set 'use altivec' flag accordingly.
        * gdb.arch/altivec-regs.exp: Likewise.

Index: gdb.arch/altivec-abi.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/altivec-abi.exp,v
retrieving revision 1.3
diff -c -3 -p -r1.3 altivec-abi.exp
*** gdb.arch/altivec-abi.exp	20 Jan 2003 15:40:07 -0000	1.3
--- gdb.arch/altivec-abi.exp	9 Mar 2005 19:25:34 -0000
*************** set testfile "altivec-abi"
*** 41,47 ****
  set binfile ${objdir}/${subdir}/${testfile}
  set srcfile ${testfile}.c
  
! if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable {debug additional_flags=-w}] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
  }
  
--- 41,62 ----
  set binfile ${objdir}/${subdir}/${testfile}
  set srcfile ${testfile}.c
  
! set compile_flags {debug additional_flags=-w}
! if [get_compiler_info $binfile] {
!     warning get_compiler failed
!     return -1;
! }
! 
! if [test_compiler_info gcc*] {
!     set compile_flags "$compile_flags additional_flags=-maltivec"
! } elseif [test_compiler_info xlc*] {
!     set compile_flags "$compile_flags additional_flags=-qaltivec"
! } else {
!     warning unknown compiler
!     return -1
! }
! 
! if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
  }
  
Index: gdb.arch/altivec-regs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/altivec-regs.exp,v
retrieving revision 1.2
diff -c -3 -p -r1.2 altivec-regs.exp
*** gdb.arch/altivec-regs.exp	20 Jan 2003 15:40:07 -0000	1.2
--- gdb.arch/altivec-regs.exp	9 Mar 2005 19:25:34 -0000
*************** set testfile "altivec-regs"
*** 41,47 ****
  set binfile ${objdir}/${subdir}/${testfile}
  set srcfile ${testfile}.c
  
! if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable {debug additional_flags=-w}] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
  }
  
--- 41,62 ----
  set binfile ${objdir}/${subdir}/${testfile}
  set srcfile ${testfile}.c
  
! set compile_flags {debug additional_flags=-w}
! if [get_compiler_info $binfile] {
!     warning get_compiler failed
!     return -1;
! }
! 
! if [test_compiler_info gcc*] {
!     set compile_flags "$compile_flags additional_flags=-maltivec"
! } elseif [test_compiler_info xlc*] {
!     set compile_flags "$compile_flags additional_flags=-qaltivec"
! } else {
!     warning unknown compiler
!     return -1
! }
! 
! if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_flags] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
  }
  


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

* Re: [patch] Allow altivec-{abi,regs}.c to be compiled by IBM's xlc compiler
  2005-03-09 20:56 [patch] Allow altivec-{abi,regs}.c to be compiled by IBM's xlc compiler Paul Gilliam
@ 2005-03-29 20:42 ` Daniel Jacobowitz
  2005-03-30 23:01   ` Paul Gilliam
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2005-03-29 20:42 UTC (permalink / raw)
  To: Paul Gilliam; +Cc: gdb-patches

On Wed, Mar 09, 2005 at 12:51:58PM -0800, Paul Gilliam wrote:
> 2005-03-09  Paul Gilliam  <pgilliam@us.ibm.com>
> 
>         * gdb.arch/altivec-abi.exp: Check for compiler and set 'use altivec' flag accordingly.
>         * gdb.arch/altivec-regs.exp: Likewise.

> ! set compile_flags {debug additional_flags=-w}
> ! if [get_compiler_info $binfile] {
> !     warning get_compiler failed
> !     return -1;
> ! }

Warning takes a string.  TCL doesn't use semicolons.

> !     warning unknown compiler

Ditto.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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

* Re: [patch] Allow altivec-{abi,regs}.c to be compiled by IBM's xlc compiler
  2005-03-29 20:42 ` Daniel Jacobowitz
@ 2005-03-30 23:01   ` Paul Gilliam
  2005-03-30 23:30     ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Gilliam @ 2005-03-30 23:01 UTC (permalink / raw)
  To: Daniel Jacobowitz; +Cc: gdb-patches

On Tuesday 29 March 2005 12:43, Daniel Jacobowitz wrote

> Warning takes a string.  TCL doesn't use semicolons.

OK, I've fixed those two things (I don't know how I missed the type of 
argument to 'warning') and have included the revised patch below.

-=# Paul #=-

PS:  semicolons ARE used in TCL - as statement separators.  Of course in this 
case they are redundent, being followed by a new-line, the other statement 
separator 8-)



2005-03-09  Paul Gilliam  <pgilliam@us.ibm.com>

        * gdb.arch/altivec-abi.exp: Check for compiler and set 'use altivec' 
flag accordingly.
        * gdb.arch/altivec-regs.exp: Likewise.

Index: gdb.arch/altivec-abi.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/altivec-abi.exp,v
retrieving revision 1.3
diff -c -3 -p -r1.3 altivec-abi.exp
*** gdb.arch/altivec-abi.exp    20 Jan 2003 15:40:07 -0000      1.3
--- gdb.arch/altivec-abi.exp    9 Mar 2005 19:25:34 -0000
*************** set testfile "altivec-abi"
*** 41,47 ****
  set binfile ${objdir}/${subdir}/${testfile}
  set srcfile ${testfile}.c
  
! if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable 
{debug additional_flags=-w}] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this 
file will automatically fail."
  }
  
--- 41,62 ----
  set binfile ${objdir}/${subdir}/${testfile}
  set srcfile ${testfile}.c
  
! set compile_flags {debug additional_flags=-w}
! if [get_compiler_info $binfile] {
!     warning "get_compiler failed"
!     return -1
! }
! 
! if [test_compiler_info gcc*] {
!     set compile_flags "$compile_flags additional_flags=-maltivec"
! } elseif [test_compiler_info xlc*] {
!     set compile_flags "$compile_flags additional_flags=-qaltivec"
! } else {
!     warning "unknown compiler"
!     return -1
! }
! 
! if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable 
$compile_flags] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this 
file will automatically fail."
  }
  
Index: gdb.arch/altivec-regs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/altivec-regs.exp,v
retrieving revision 1.2
diff -c -3 -p -r1.2 altivec-regs.exp
*** gdb.arch/altivec-regs.exp   20 Jan 2003 15:40:07 -0000      1.2
--- gdb.arch/altivec-regs.exp   9 Mar 2005 19:25:34 -0000
*************** set testfile "altivec-regs"
*** 41,47 ****
  set binfile ${objdir}/${subdir}/${testfile}
  set srcfile ${testfile}.c
  
! if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable 
{debug additional_flags=-w}] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this 
file will automatically fail."
  }
  
--- 41,62 ----
  set binfile ${objdir}/${subdir}/${testfile}
  set srcfile ${testfile}.c
  
! set compile_flags {debug additional_flags=-w}
! if [get_compiler_info $binfile] {
!     warning "get_compiler failed"
!     return -1
! }
! 
! if [test_compiler_info gcc*] {
!     set compile_flags "$compile_flags additional_flags=-maltivec"
! } elseif [test_compiler_info xlc*] {
!     set compile_flags "$compile_flags additional_flags=-qaltivec"
! } else {
!     warning "unknown compiler"
!     return -1
! }
! 
! if  { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable 
$compile_flags] != "" } {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this 
file will automatically fail."
  }
  


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

* Re: [patch] Allow altivec-{abi,regs}.c to be compiled by IBM's xlc compiler
  2005-03-30 23:01   ` Paul Gilliam
@ 2005-03-30 23:30     ` Daniel Jacobowitz
  2005-04-01 18:44       ` Paul Gilliam
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2005-03-30 23:30 UTC (permalink / raw)
  To: Paul Gilliam; +Cc: gdb-patches

On Wed, Mar 30, 2005 at 02:56:56PM -0800, Paul Gilliam wrote:
> 2005-03-09  Paul Gilliam  <pgilliam@us.ibm.com>
> 
>         * gdb.arch/altivec-abi.exp: Check for compiler and set 'use altivec' 
> flag accordingly.
>         * gdb.arch/altivec-regs.exp: Likewise.

OK.  Fix your line wrapping :-)

-- 
Daniel Jacobowitz
CodeSourcery, LLC


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

* Re: [patch] Allow altivec-{abi,regs}.c to be compiled by IBM's xlc compiler
  2005-03-30 23:30     ` Daniel Jacobowitz
@ 2005-04-01 18:44       ` Paul Gilliam
  2005-04-01 18:47         ` [COMMIT] " Paul Gilliam
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Gilliam @ 2005-04-01 18:44 UTC (permalink / raw)
  To: gdb-patches; +Cc: Daniel Jacobowitz

On Wednesday 30 March 2005 15:31, Daniel Jacobowitz wrote:
> On Wed, Mar 30, 2005 at 02:56:56PM -0800, Paul Gilliam wrote:
> > 2005-03-09  Paul Gilliam  <pgilliam@us.ibm.com>
> > 
> >         * gdb.arch/altivec-abi.exp: Check for compiler and set 'use altivec' 
> > flag accordingly.
> >         * gdb.arch/altivec-regs.exp: Likewise.
> 
> OK.  Fix your line wrapping :-)
> 

Committed

-=# Paul #=-


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

* [COMMIT] Allow altivec-{abi,regs}.c to be compiled by IBM's xlc compiler
  2005-04-01 18:44       ` Paul Gilliam
@ 2005-04-01 18:47         ` Paul Gilliam
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Gilliam @ 2005-04-01 18:47 UTC (permalink / raw)
  To: gdb-patches; +Cc: Daniel Jacobowitz

On Friday 01 April 2005 10:40, Paul Gilliam wrote:
> On Wednesday 30 March 2005 15:31, Daniel Jacobowitz wrote:
> > On Wed, Mar 30, 2005 at 02:56:56PM -0800, Paul Gilliam wrote:
> > > 2005-03-09  Paul Gilliam  <pgilliam@us.ibm.com>
> > > 
> > >         * gdb.arch/altivec-abi.exp: Check for compiler and set 'use altivec' 
> > > flag accordingly.
> > >         * gdb.arch/altivec-regs.exp: Likewise.
> > 
> > OK.  Fix your line wrapping :-)
> > 
> 
> Committed
> 
> -=# Paul #=-
> 
> 
Corrent subject line for this message  -=# Paul #=-


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

end of thread, other threads:[~2005-04-01 18:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-09 20:56 [patch] Allow altivec-{abi,regs}.c to be compiled by IBM's xlc compiler Paul Gilliam
2005-03-29 20:42 ` Daniel Jacobowitz
2005-03-30 23:01   ` Paul Gilliam
2005-03-30 23:30     ` Daniel Jacobowitz
2005-04-01 18:44       ` Paul Gilliam
2005-04-01 18:47         ` [COMMIT] " Paul Gilliam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox