From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24554 invoked by alias); 21 Mar 2012 18:36:35 -0000 Received: (qmail 24373 invoked by uid 22791); 21 Mar 2012 18:36:33 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Mar 2012 18:36:13 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id AF6922F78016 for ; Wed, 21 Mar 2012 18:36:11 +0000 (GMT) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ecqzv2AybTvW; Wed, 21 Mar 2012 18:36:05 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001539] Single precision floating point math library X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: sergei.gavrikov@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Wed, 21 Mar 2012 18:36:00 -0000 Message-Id: <20120321183605.581672F78001@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2012-03/txt/msg00101.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001539 --- Comment #11 from Sergei Gavrikov 2012-03-21 18:36:01 GMT --- (In reply to comment #10) > (In reply to comment #9) > Library is not tied to any architecture, we took it from Newlib and > merely adapted to eCos by studying the differences between "double" > libs.. My standard testing is with Cortex-M3 settings -mcpu=cortex-m3 > -mthumb -O2 which is default even for Kinetis (until we switch to > gcc-4.6). > >Thus, I thought that I missed something in eCos configuration. Could > >you provide your ecm-file? > > There isn't much for ecm file, only startup type. > > It would be good if you could try with some ARM target. FYI, example > tests that fail on my platform are: asinf(x) |x| > 1, acosf(x) |x| > > 1, logf(x) x < 0. Pass: tanf(), expf(), cosf(), etc... Iljia, thanks for guidance. So, I got the same results for ARM7TDMI (LE) target (default template, RAM startup, run in GDB, build with GCC 4.6.3) ECOS_GLOBAL_CFLAGS = -Wall -Wpointer-arith -Wstrict-prototypes -Wundef -Woverloaded-virtual -Wno-write-strings -mno-thumb-interwork -mcpu=arm7tdmi -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions ECOS_GLOBAL_LDFLAGS = -mno-thumb-interwork -mcpu=arm7tdmi -Wl,--gc-sections -Wl,-static -g -nostdlib ECOS_COMMAND_PREFIX = arm-eabi- f-tests passed: PASS: PASS: PASS: PASS: PASS: PASS: PASS: PASS: PASS: PASS: PASS: PASS: PASS: PASS: PASS: PASS: f-tests failed: FAIL: Line: 92, File: ... vectors/acosf.c FAIL: Line: 92, File: ... vectors/asinf.c FAIL: Line: 92, File: ... vectors/frexpf.c FAIL: Line: 92, File: ... vectors/log10f.c FAIL: Line: 92, File: ... vectors/logf.c There were 42 warnings [-Wunused-function] in the build (otherwise, all is clean). One fix would be to add a prototyping for doTestVec() and doTestVecFloat() in tests/vector_support.h with GCC attribute unused static cyg_bool doTestVec(CYG_ADDRESS func_ptr, Cyg_libm_test_arg_type arg1_type, Cyg_libm_test_arg_type arg2_type, Cyg_libm_test_arg_type result_type, const Cyg_libm_test_double_vec_t * vectors, cyg_ucount32 num_vectors) CYGBLD_ATTRIB_UNUSED; and the same for doTestVecFloat(), then build is silent. Thanks. Be continue. Sergei -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.