[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#531584: cppunit: Patch for Renesas SuperH (SH4)

Package: cppunit
Severity: wishlist
Tags: patch
X-Debbugs-CC: debian-superh@lists.debian.org


I am porting of Renesas SH in Debian. 
The current cppunit package doen't support SH and can not build. 

TestCallerTest::testPointerConstructor : OK

Test name: TestAssertTest::testAssertDoubleNonFinite
assertion failed
- Expression: CPPUNIT_NS::floatingPointIsUnordered( nan )

Failures !!!
Run: 222   Failure total: 1   Failures: 1   Errors: 0
FAIL: cppunittestmain

But SuperH can evade this problem by attaching -mieee option.
I made a patch to revise to be able to build. 
Would you apply it?

Best regards,

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Nobuhiro Iwamatsu
	GPG ID: 3170EBE9
--- a/debian/rules	2009-06-02 14:09:19.000000000 +0000
+++ b/debian/rules	2009-06-02 14:08:54.000000000 +0000
@@ -15,6 +15,8 @@
         CXXFLAGS += -O0
     else ifeq (alpha,$(DEB_HOST_ARCH))
         CXXFLAGS += -O0
+    else ifeq (sh,$(DEB_HOST_ARCH))
+        CXXFLAGS += -O2 -mieee
         CXXFLAGS += -O2

Reply to: