From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26972 invoked by alias); 2 Mar 2005 21:57:39 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26930 invoked from network); 2 Mar 2005 21:57:34 -0000 Received: from unknown (HELO e34.co.us.ibm.com) (32.97.110.132) by sourceware.org with SMTP; 2 Mar 2005 21:57:34 -0000 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e34.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j22LvYMN135698 for ; Wed, 2 Mar 2005 16:57:34 -0500 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay05.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j22LvXL3156544 for ; Wed, 2 Mar 2005 14:57:33 -0700 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j22LvXTv005254 for ; Wed, 2 Mar 2005 14:57:33 -0700 Received: from dyn319633.beaverton.ibm.com (DYN319633.beaverton.ibm.com [9.47.22.123]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j22LvXSj005178 for ; Wed, 2 Mar 2005 14:57:33 -0700 From: Paul Gilliam Reply-To: pgilliam@us.ibm.com To: gdb-patches@sources.redhat.com Subject: Another altivec testsuite patch Date: Wed, 02 Mar 2005 21:57:00 -0000 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_uXjJCAVoBOlGSCM" Message-Id: <200503021353.50652.pgilliam@us.ibm.com> X-SW-Source: 2005-03/txt/msg00020.txt.bz2 --Boundary-00=_uXjJCAVoBOlGSCM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 170 The gcc compiler needs -maltivec to enable altivec support. OK to commit? Is this an obvious patch I should have just committed without asking? -=# Paul Gilliam #=- --Boundary-00=_uXjJCAVoBOlGSCM Content-Type: text/x-diff; charset="us-ascii"; name="altivec2.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="altivec2.patch" Content-length: 1964 diff -Naur testsuite.old/ChangeLog testsuite/ChangeLog --- testsuite.old/ChangeLog 2005-03-02 13:28:23.757211464 -0800 +++ testsuite/ChangeLog 2005-03-02 13:56:01.659188904 -0800 @@ -1,3 +1,8 @@ +2005-03-02 Paul Gilliam + + * gdb.arch/altivec-abi.exp: Added -maltivec to compiler flags. + * gdb.arch/altivec-regs.exp: Likewise + 2004-03-01 Paul Gilliam * lib/gdb.exp: added 'skip_altivec_tests', a modification of diff -Naur testsuite.old/gdb.arch/altivec-abi.exp testsuite/gdb.arch/altivec-abi.exp --- testsuite.old/gdb.arch/altivec-abi.exp 2005-03-02 13:28:23.759211160 -0800 +++ testsuite/gdb.arch/altivec-abi.exp 2005-03-02 13:30:27.210216176 -0800 @@ -41,7 +41,9 @@ set binfile ${objdir}/${subdir}/${testfile} set srcfile ${testfile}.c -if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable {debug additional_flags=-w}] != "" } { +set compile_options {debug additional_flags=-w additional_flags=-maltivec} + +if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_options] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } diff -Naur testsuite.old/gdb.arch/altivec-regs.exp testsuite/gdb.arch/altivec-regs.exp --- testsuite.old/gdb.arch/altivec-regs.exp 2005-03-02 13:28:23.759211160 -0800 +++ testsuite/gdb.arch/altivec-regs.exp 2005-03-02 13:30:27.211216024 -0800 @@ -41,7 +41,9 @@ set binfile ${objdir}/${subdir}/${testfile} set srcfile ${testfile}.c -if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable {debug additional_flags=-w}] != "" } { +set compile_options {debug additional_flags=-w additional_flags=-maltivec} + +if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $compile_options] != "" } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } --Boundary-00=_uXjJCAVoBOlGSCM--