summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-18 14:07:00 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-18 14:07:00 +0000
commit27c9bdfe63b95e705c4557acc729385c379fce04 (patch)
tree878438cf2cf81bfdb9c8550a7066b87ba738e0eb /gcc/testsuite/gcc.target
parentd1a39099d14fcc3c9691c317367264f50ab2b9a5 (diff)
downloadgcc-27c9bdfe63b95e705c4557acc729385c379fce04.tar.gz
* cgraphunit.c (cgraph_expand_pending_functions): Give up at
syntax errors. (cgraph_analyze_function): Likewise. * gcc.dg/asm-wide-1.c: Do not require extra errors we output confused by earlier errors. * gcc.target/i386/sseregparm-2.c: Remove markers for errors not output at parsing time. * gcc.target/i386/sseregparm-8.c: Move here compile time errors from gcc.target/i386/sseregparm-2.c. * gcc.dg/weak/weak-6.c: Do not require extra errors we output confused by earlier errors. * gcc.dg/weak/weak-7.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136895 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.target')
-rw-r--r--gcc/testsuite/gcc.target/i386/sseregparm-2.c8
-rw-r--r--gcc/testsuite/gcc.target/i386/sseregparm-8.c17
2 files changed, 21 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.target/i386/sseregparm-2.c b/gcc/testsuite/gcc.target/i386/sseregparm-2.c
index 84bf58925c7..cca98ca82ba 100644
--- a/gcc/testsuite/gcc.target/i386/sseregparm-2.c
+++ b/gcc/testsuite/gcc.target/i386/sseregparm-2.c
@@ -10,8 +10,8 @@ extern double d;
extern float f;
void test(void)
{
- f = essef(f); /* { dg-error "SSE" } */
- d = essed(d); /* { dg-error "SSE" } */
- f = ssef(f); /* { dg-error "SSE" } */
- d = ssed(d); /* { dg-error "SSE" } */
+ f = essef(f);
+ d = essed(d);
+ f = ssef(f);
+ d = ssed(d);
}
diff --git a/gcc/testsuite/gcc.target/i386/sseregparm-8.c b/gcc/testsuite/gcc.target/i386/sseregparm-8.c
new file mode 100644
index 00000000000..3a9d345a96b
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/sseregparm-8.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-mno-sse" } */
+/* { dg-require-effective-target ilp32 } */
+
+float essef(float) __attribute__((sseregparm));
+double essed(double) __attribute__((sseregparm));
+float __attribute__((sseregparm)) ssef(float f);
+double __attribute__((sseregparm)) ssed(double d);
+extern double d;
+extern float f;
+void test(void)
+{
+ f = essef(f); /* { dg-error "SSE" } */
+ d = essed(d); /* { dg-error "SSE" } */
+ f = ssef(f); /* { dg-error "SSE" } */
+ d = ssed(d); /* { dg-error "SSE" } */
+}