This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/38864] Incorrect interaction between --with-arch=native and -mARCH
- From: "nemet at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2009 02:47:24 -0000
- Subject: [Bug driver/38864] Incorrect interaction between --with-arch=native and -mARCH
- References: <bug-38864-7151@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from nemet at gcc dot gnu dot org 2009-01-24 02:47 -------
It was actually Richard's mips.exp rewrite that removed { target { fixed_point
} } from these tests.
Richard, was this intentional? It seems to me that since fixed-point is not
dependent on a command-line flag (-mdsp is orthogonal) the effective-target
check is correct here.
Should I revert it like this:
Index: fixed-vector-type.c
===================================================================
--- fixed-vector-type.c (revision 143450)
+++ fixed-vector-type.c (working copy)
@@ -1,5 +1,5 @@
/* Test vector fixed-point instructions */
-/* { dg-do compile } */
+/* { dg-do compile { target { fixed_point } } } */
/* { dg-options "-mdspr2 -O2" } */
/* { dg-final { scan-assembler-times "\taddq_s.ph\t" 2 } } */
/* { dg-final { scan-assembler-times "\tsubq_s.ph\t" 2 } } */
Index: fixed-scalar-type.c
===================================================================
--- fixed-scalar-type.c (revision 143450)
+++ fixed-scalar-type.c (working copy)
@@ -1,5 +1,5 @@
/* Test scalar fixed-point instructions */
-/* { dg-do compile } */
+/* { dg-do compile { target { fixed_point } } } */
/* { dg-options "-mdspr2 -O2" } */
/* { dg-final { scan-assembler-times "\taddu\t" 10 } } */
/* { dg-final { scan-assembler-times "\tsubu\t" 10 } } */
Index: dpaq_sa_l_w.c
===================================================================
--- dpaq_sa_l_w.c (revision 143450)
+++ dpaq_sa_l_w.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { fixed_point } } } */
/* { dg-options "-O2 -mgp32 -mdsp" } */
/* { dg-final { scan-assembler-times "\tdpaq_sa.l.w\t\\\$ac" 3 } } */
Index: dpsq_sa_l_w.c
===================================================================
--- dpsq_sa_l_w.c (revision 143450)
+++ dpsq_sa_l_w.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { fixed_point } } } */
/* { dg-options "-O2 -mgp32 -mdsp" } */
/* { dg-final { scan-assembler-times "\tdpsq_sa.l.w\t\\\$ac" 2 } } */
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38864