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's xlc compiler - nodebug.exp


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

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

Index: gdb.base/nodebug.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/nodebug.exp,v
retrieving revision 1.4
diff -c -3 -p -r1.4 nodebug.exp
*** gdb.base/nodebug.exp	19 Feb 2004 16:43:19 -0000	1.4
--- gdb.base/nodebug.exp	1 Apr 2005 20:19:26 -0000
*************** set bug_id 0
*** 29,43 ****
  set testfile nodebug
  set srcfile ${testfile}.c
  set binfile ${objdir}/${subdir}/${testfile}
- if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable ""] != "" } {
-      gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
- }
  
  # Create and source the file that provides information about the compiler
  # used to compile the test case.
  if [get_compiler_info ${binfile}] {
      return -1;
  }
  
  gdb_exit
  gdb_start
--- 29,49 ----
  set testfile nodebug
  set srcfile ${testfile}.c
  set binfile ${objdir}/${subdir}/${testfile}
  
  # Create and source the file that provides information about the compiler
  # used to compile the test case.
  if [get_compiler_info ${binfile}] {
      return -1;
  }
+ if { [test_compiler_info "xlc-*"] } {
+     set additional_flags "additional_flags=-qstatsym"
+ } else {
+     set additional_flags ""
+ }
+ 
+ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "$additional_flags"] != "" } {
+      gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
+ }
  
  gdb_exit
  gdb_start


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