[testsuite] Remove code setting target_cflags -D_MIT_POSIX_THREADS
Commit Message
target_cflags is not used at all. This patch removes it. I searched the
history of gdb, gcc and dejagnu, I don't see how target_cflags was used.
gdb/testsuite:
2017-11-21 Yao Qi <yao.qi@linaro.org>
* gdb.threads/gcore-thread.exp: Remove code setting
target_cflags.
* gdb.threads/pthreads.exp: Likewise.
* gdb.threads/tls-nodebug.exp: Likewise.
* gdb.threads/tls.exp: Likewise.
---
gdb/testsuite/gdb.threads/gcore-thread.exp | 6 ------
gdb/testsuite/gdb.threads/pthreads.exp | 6 ------
gdb/testsuite/gdb.threads/tls-nodebug.exp | 6 ------
gdb/testsuite/gdb.threads/tls.exp | 6 ------
4 files changed, 24 deletions(-)
@@ -22,12 +22,6 @@ set objfile $binfile.o
set corefile $binfile.test
set core0file ${binfile}0.test
-if [istarget "*-*-linux"] then {
- set target_cflags "-D_MIT_POSIX_THREADS"
-} else {
- set target_cflags ""
-}
-
# Attempt to prevent -Wl,-z,relro which happens by default at least on
# Kubuntu-10.10. Due to PR corefiles/11804 will then GDB be unable to find
# libpthread, therefore libthread_db will not fail as expected
@@ -27,12 +27,6 @@ standard_testfile
# carriage return)
set horiz "\[^\n\r\]*"
-if [istarget "*-*-linux"] then {
- set target_cflags "-D_MIT_POSIX_THREADS"
-} else {
- set target_cflags ""
-}
-
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
return -1
}
@@ -16,12 +16,6 @@
standard_testfile
-if [istarget "*-*-linux"] then {
- set target_cflags "-D_MIT_POSIX_THREADS"
-} else {
- set target_cflags ""
-}
-
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable []] != "" } {
return -1
}
@@ -18,12 +18,6 @@ load_lib gdb-python.exp
standard_testfile tls.c tls2.c
-if [istarget "*-*-linux"] then {
- set target_cflags "-D_MIT_POSIX_THREADS"
-} else {
- set target_cflags ""
-}
-
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile} ${srcdir}/${subdir}/${srcfile2}" "${binfile}" executable [list c++ debug]] != "" } {
return -1
}