This is the mail archive of the gdb-patches@sourceware.org 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]

[commit, testsuite] Silence PIE compiler failures


Hello,

the pie-support.exp test case outputs a couple of compiler errors on spu-elf,
because PIE is not supported on this platform.  This patch fixes that by
passing the quiet flag to gdb_compile.

Tested on spu-elf, committed to mainline.

Bye,
Ulrich

ChangeLog:

	* gdb.base/pie-support.exp: Pass "quiet" flag to gdb_compile.

Index: gdb/testsuite/gdb.base/pie-support.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/pie-support.exp,v
retrieving revision 1.1
diff -c -p -r1.1 pie-support.exp
*** gdb/testsuite/gdb.base/pie-support.exp	4 Aug 2009 20:41:13 -0000	1.1
--- gdb/testsuite/gdb.base/pie-support.exp	25 Sep 2009 14:43:07 -0000
*************** set srcfile ${testfile}.c
*** 18,28 ****
  set objfile ${objdir}/${subdir}/${testfile}.o
  set binfile ${objdir}/${subdir}/${testfile}
  
! if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {debug additional_flags=-fpie}] != "" } {
      untested "Couldn't compile test PIE object file."
      return -1
  }
! if  { [gdb_compile "${objfile}" "${binfile}" executable {debug additional_flags=-pie}] != "" } {
      untested "Couldn't compile test PIE binary."
      return -1
  }
--- 18,28 ----
  set objfile ${objdir}/${subdir}/${testfile}.o
  set binfile ${objdir}/${subdir}/${testfile}
  
! if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${objfile}" object {quiet debug additional_flags=-fpie}] != "" } {
      untested "Couldn't compile test PIE object file."
      return -1
  }
! if  { [gdb_compile "${objfile}" "${binfile}" executable {quiet debug additional_flags=-pie}] != "" } {
      untested "Couldn't compile test PIE binary."
      return -1
  }
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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