From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18561 invoked by alias); 12 Aug 2012 11:05:40 -0000 Received: (qmail 18551 invoked by uid 22791); 12 Aug 2012 11:05:39 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED 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; Sun, 12 Aug 2012 11:05:25 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 4D3432F7800C for ; Sun, 12 Aug 2012 12:05:23 +0100 (BST) 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 oBeUGCS-uLNK; Sun, 12 Aug 2012 12:05:21 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001607] Cortex-M4F architectural Floating Point Support 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: ilijak@siva.com.mk X-Bugzilla-Status: NEEDINFO X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: jifl@ecoscentric.com 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: Sun, 12 Aug 2012 11:05:00 -0000 Message-Id: <20120812110521.0F2642F7800A@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-08/txt/msg00038.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001607 --- Comment #26 from Ilija Kocho 2012-08-12 12:05:05 BST --- (In reply to comment #24) [snip] > > 1) Cortex-M4/M3 selector is removed, and CYGBLD_ARCH_XFLAGS added, with comment > regarding GCC issue. Anti-flags (4) moved to CYGINT_HAL_CORTEXM_FPU and > CYGINT_HAL_FPV4_SP_D16 (respecting FPU abstraction). There is, however a > problem with unresolved conflicts when I click on CYGHWR_HAL_CORTEXM_FPU. > Funny, but it resolves when I right-click RESOLVE in conflict window. It seems that is_substr() expressions are executed concurrently rather than sequentially. Following snippets, although less elegant, produce correct behavior. cdl_interface CYGINT_HAL_FPV4_SP_D16 { flavor bool display "FPU is FPv4-SP-D16" implements CYGINT_HAL_CORTEXM_FPU requires { !CYGHWR_HAL_CORTEXM_FPU implies !is_substr(CYGBLD_GLOBAL_CFLAGS, "-mfpu=fpv4-sp-d16") && !is_substr(CYGBLD_GLOBAL_CFLAGS, "-mfloat-abi=hard") } requires { !CYGHWR_HAL_CORTEXM_FPU implies !is_substr(CYGBLD_GLOBAL_LDFLAGS, "-mfpu=fpv4-sp-d16") && !is_substr(CYGBLD_GLOBAL_LDFLAGS, "-mfloat-abi=hard") } requires { (CYGHWR_HAL_CORTEXM_FPU && !CYGINT_HAL_FPV4_SP_D16) implies !is_substr(CYGBLD_GLOBAL_CFLAGS, "-mfpu=fpv4-sp-d16") } requires { (CYGHWR_HAL_CORTEXM_FPU && !CYGINT_HAL_FPV4_SP_D16) implies !is_substr(CYGBLD_GLOBAL_LDFLAGS, "-mfpu=fpv4-sp-d16") } } cdl_component CYGHWR_HAL_CORTEXM_FPU { display "Use hardware FPU" flavor bool active_if (CYGINT_HAL_CORTEXM_FPU ) default_value 0; #{ CYGINT_HAL_CORTEXM_FPU } compile cortexm_fpu.c } } cdl_component CYGHWR_HAL_FPV4_SP_D16 { flavor none active_if CYGINT_HAL_FPV4_SP_D16 && CYGHWR_HAL_CORTEXM_FPU display "FPv4-SP-D16" no_define compile fpv4_sp_d16.c requires { is_substr(CYGBLD_GLOBAL_CFLAGS, " -mcpu=cortex-m4") && is_substr(CYGBLD_GLOBAL_CFLAGS, " -mfloat-abi=hard") && is_substr(CYGBLD_GLOBAL_CFLAGS, " -mfpu=fpv4-sp-d16") && !is_substr(CYGBLD_GLOBAL_CFLAGS, "-mcpu=cortex-m3") } requires { is_substr(CYGBLD_GLOBAL_LDFLAGS, " -mcpu=cortex-m4") && is_substr(CYGBLD_GLOBAL_LDFLAGS," -mfloat-abi=hard") && is_substr(CYGBLD_GLOBAL_LDFLAGS, " -mfpu=fpv4-sp-d16") && !is_substr(CYGBLD_GLOBAL_LDFLAGS, "-mcpu=cortex-m3") } } } Ilija -- 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.