summaryrefslogtreecommitdiffstats
path: root/gdb/testsuite/gdb.arch/i386-sse.exp
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-07-12 15:20:00 +0000
committerMark Kettenis <kettenis@gnu.org>2005-07-12 15:20:00 +0000
commitb1a9c082599b7951076c3dbaa8f40cbbb9dd3e41 (patch)
treee1b2878b417ccc93e6f3b8802bdec81bd04b388b /gdb/testsuite/gdb.arch/i386-sse.exp
parentf9cc25de333060fea941bd76515ed0f845a60d2b (diff)
downloadppe42-binutils-b1a9c082599b7951076c3dbaa8f40cbbb9dd3e41.tar.gz
ppe42-binutils-b1a9c082599b7951076c3dbaa8f40cbbb9dd3e41.zip
* gdb.arch/i386-sse.exp: Compile with -msse when using GCC.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-sse.exp')
-rw-r--r--gdb/testsuite/gdb.arch/i386-sse.exp14
1 files changed, 12 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-sse.exp b/gdb/testsuite/gdb.arch/i386-sse.exp
index 702ee7127a..f77adaa649 100644
--- a/gdb/testsuite/gdb.arch/i386-sse.exp
+++ b/gdb/testsuite/gdb.arch/i386-sse.exp
@@ -1,4 +1,4 @@
-# Copyright 2004 Free Software Foundation, Inc.
+# Copyright 2004, 2005 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -34,7 +34,17 @@ if ![istarget "i?86-*-*"] then {
set testfile "i386-sse"
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
+
+if [get_compiler_info ${binfile}] {
+ return -1
+}
+
+set additional_flags ""
+if [test_compiler_info gcc*] {
+ set additional_flags "additional_flags=-msse"
+}
+
+if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
unsupported "compiler does not support SSE"
return
}
OpenPOWER on IntegriCloud