This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit, testsuite] Silence PIE compiler failures
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 27 Sep 2009 22:53:43 +0200 (CEST)
- Subject: [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