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]

[patch] Allow compilation by IBM'x xlc compiler - shlib-call.exp


2005-04-01  Paul Gilliam  <pgilliam@us.ibm.com>

	* gdb.base/shlib-call.exp: Allow for compilation by IBM's xlc compiler.

Index: gdb.base/shlib-call.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/shlib-call.exp,v
retrieving revision 1.9
diff -c -3 -p -r1.9 shlib-call.exp
*** gdb.base/shlib-call.exp	7 Jun 2004 15:24:44 -0000	1.9
--- gdb.base/shlib-call.exp	1 Apr 2005 21:52:04 -0000
*************** if {$gcc_compiled == 0} {
*** 68,73 ****
--- 68,75 ----
      } elseif { [istarget "mips-sgi-irix*"] } {
  	# Disable SGI compiler's implicit -Dsgi
  	set additional_flags "additional_flags=-Usgi"
+     } elseif { [test_compiler_info "xlc-*"] } {
+         set additional_flags "additional_flags=-qpic"
      } else {
  	# don't know what the compiler is...
  	set additional_flags ""
*************** if {[gdb_compile "${srcdir}/${subdir}/${
*** 92,99 ****
  if [istarget "hppa*-*-hpux*"] {
      remote_exec build "ld -b ${objdir}/${subdir}/${libfile}1.o -o ${objdir}/${subdir}/${libfile}1.sl"
      remote_exec build "ld -b ${objdir}/${subdir}/${libfile}2.o -o ${objdir}/${subdir}/${libfile}2.sl"
! } else {
!     set additional_flags "additional_flags=-shared"
      if {[gdb_compile "${objdir}/${subdir}/${libfile}1.o" "${objdir}/${subdir}/${libfile}1.sl" executable [list debug $additional_flags]] != ""} {
  	gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
      }
--- 94,108 ----
  if [istarget "hppa*-*-hpux*"] {
      remote_exec build "ld -b ${objdir}/${subdir}/${libfile}1.o -o ${objdir}/${subdir}/${libfile}1.sl"
      remote_exec build "ld -b ${objdir}/${subdir}/${libfile}2.o -o ${objdir}/${subdir}/${libfile}2.sl"
!     if { [test_compiler_info "xlc-*"] } {
!         set additional_flags "additional_flags=-qmkshrobj"
!         set libfileso1 "-Wl,${objdir}/${subdir}/${libfile}1.sl"
!         set libfileso2 "-Wl,${objdir}/${subdir}/${libfile}2.sl"
!     } else {
!         set additional_flags "additional_flags=-shared"
!         set libfileso1 "${objdir}/${subdir}/${libfile}1.sl"
!         set libfileso2 "${objdir}/${subdir}/${libfile}2.sl"
!     }
      if {[gdb_compile "${objdir}/${subdir}/${libfile}1.o" "${objdir}/${subdir}/${libfile}1.sl" executable [list debug $additional_flags]] != ""} {
  	gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
      }
*************** if { ($gcc_compiled 
*** 111,117 ****
  } else {
      set additional_flags ""
  }
! if {[gdb_compile "${objdir}/${subdir}/${testfile}.o ${objdir}/${subdir}/${libfile}1.sl ${objdir}/${subdir}/${libfile}2.sl" "${binfile}" executable [list debug $additional_flags]] != ""} {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
  }
  
--- 120,126 ----
  } else {
      set additional_flags ""
  }
! if {[gdb_compile "${objdir}/${subdir}/${testfile}.o ${libfileso1} ${libfileso2}" "${binfile}" executable [list debug $additional_flags]] != ""} {
       gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
  }
  


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