OSDN Git Service

2002-09-26 David S. Miller <davem@redhat.com>
authordavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Sep 2002 04:14:12 +0000 (04:14 +0000)
committerdavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Sep 2002 04:14:12 +0000 (04:14 +0000)
* gcc.c-torture/compile/trunctfdf.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57577 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/trunctfdf.c [new file with mode: 0644]

index 7337865..d211f1b 100644 (file)
@@ -1,3 +1,7 @@
+2002-09-26  David S. Miller  <davem@redhat.com>
+
+       * gcc.c-torture/compile/trunctfdf.c: New.
+
 2002-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * lib/target-supports.exp (check_weak_available): Handle solaris2.
diff --git a/gcc/testsuite/gcc.c-torture/compile/trunctfdf.c b/gcc/testsuite/gcc.c-torture/compile/trunctfdf.c
new file mode 100644 (file)
index 0000000..29d6ed0
--- /dev/null
@@ -0,0 +1,14 @@
+/* Sparc w/128-bit long double bombed on this because even though
+   the trunctfdf libcall passed the long double by reference, the
+   libcall was still marked as LCT_CONST instead of LCT_PURE.  */
+
+double *copy(long double *first, long double *last, double *result)
+{
+       int n;
+       for (n = last - first; n > 0; --n) {
+               *result = *first;
+               ++first;
+               ++result;
+       }
+       return result;
+}