From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27751 invoked by alias); 13 Mar 2012 12:34:34 -0000 Received: (qmail 27249 invoked by uid 22791); 13 Mar 2012 12:34:32 -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; Tue, 13 Mar 2012 12:34:19 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 6E8C82F78008 for ; Tue, 13 Mar 2012 12:34:18 +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 OA38TzGr0IVj; Tue, 13 Mar 2012 12:34:17 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001528] compat/posix: porting to GCC 4.6 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: minor X-Bugzilla-Who: sergei.gavrikov@gmail.com 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: Tue, 13 Mar 2012 12:34:00 -0000 Message-Id: <20120313123416.E13922F78001@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/msg00044.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001528 --- Comment #3 from Sergei Gavrikov 2012-03-13 12:34:09 GMT --- Sorry, for delayed answer. Snippets are below: tests/signal2.c:128 volatile int x; volatile CYG_ADDRESS p=(CYG_ADDRESS) &jbuf; do { x = *(volatile int *)(p); p += (CYG_ADDRESS)0x100000; } while( p != (CYG_ADDRESS)&jbuf ); GCC 4.3 (-O2) 16c: e58d400c str r4, [sp, #12] 170: e1a00004 mov r0, r4 174: e59d300c ldr r3, [sp, #12] 178: e5932000 ldr r2, [r3] 17c: e58d2010 str r2, [sp, #16] 180: e59d300c ldr r3, [sp, #12] 184: e2833601 add r3, r3, #1048576 ; 0x100000 188: e58d300c str r3, [sp, #12] 18c: e59d200c ldr r2, [sp, #12] 190: e1500002 cmp r0, r2 194: 1afffff6 bne 174 GCC 4.6 (-O2) 158: e58d4014 str r4, [sp, #20] 15c: e59d3014 ldr r3, [sp, #20] 160: e5933000 ldr r3, [r3] 164: e58d3010 str r3, [sp, #16] 168: e59d3014 ldr r3, [sp, #20] 16c: e2833601 add r3, r3, #1048576 ; 0x100000 170: e58d3014 str r3, [sp, #20] 174: e59d3014 ldr r3, [sp, #20] 178: e1540003 cmp r4, r3 17c: 1afffff6 bne 15c Thus, new compiler uses less registers, but, GCC 4.6 provides the same functionality (I tested the loop in GDB, and I got `sigbus' call at the end with new code). Though, you are right, a using CYGBLD_ATTRIB_UNUSED for the forced volatile variables would break smart things. Then, maybe leave signal2 test without the changes as I tested the code for one CPU only? What is your verdict? -- 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.