From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13490 invoked by alias); 11 Aug 2011 18:55:37 -0000 Received: (qmail 13466 invoked by uid 22791); 11 Aug 2011 18:55:36 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_DF,TW_XF X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Aug 2011 18:55:21 +0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/13079] New: i386-linux needs to implement frame_align, dfp-test.exp fails with recent gccs Date: Fri, 12 Aug 2011 17:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2011-q3/txt/msg00157.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=13079 Bug #: 13079 Summary: i386-linux needs to implement frame_align, dfp-test.exp fails with recent gccs Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: gdb AssignedTo: unassigned@sourceware.org ReportedBy: dje@google.com Classification: Unclassified dfp-test.exp is failing with recent gccs, i386-linux. This is because gcc now optimizes frame alignment of leaf functions, which matters for functions that use sse. [and this isn't linux specific of course] $ gdb -nx testsuite/gdb.base/dfp-test [...] (gdb) b arg0_128 Breakpoint 1 at 0x8048541: file ../../../src/gdb/testsuite/gdb.base/dfp-test.c, line 123. (gdb) r Starting program: /g3/gnu/sourceware/pure-gdb/build/obj64/gdb/testsuite/gdb.base/dfp-test Breakpoint 1, arg0_128 (arg0=0.1, arg1=1.0, arg2=2.0, arg3=3.0, arg4=4.0, arg5=5.0) at ../../../src/gdb/testsuite/gdb.base/dfp-test.c:123 123 return arg0; (gdb) p/x $sp $1 = 0xffffd468 (gdb) call arg0_128 (1.2dl, 2.2dl, 3.2dl, 4.2dl, 5.2dl, 6.2dl) Breakpoint 1, arg0_128 (arg0=1.2, arg1=2.2, arg2=3.2, arg3=4.2, arg4=5.2, arg5=6.2) at ../../../src/gdb/testsuite/gdb.base/dfp-test.c:123 123 return arg0; The program being debugged stopped while in a function called from GDB. Evaluation of the expression containing the function (arg0_128) will be abandoned. When the function is done executing, GDB will silently stop. (gdb) fin Run till exit from #0 arg0_128 (arg0=1.2, arg1=2.2, arg2=3.2, arg3=4.2, arg4=5.2, arg5=6.2) at ../../../src/gdb/testsuite/gdb.base/dfp-test.c:123 Program received signal SIGSEGV, Segmentation fault. 0x08048544 in arg0_128 (arg0=1.2, arg1=2.2, arg2=3.2, arg3=4.2, arg4=5.2, arg5=6.2) at ../../../src/gdb/testsuite/gdb.base/dfp-test.c:123 123 return arg0; (gdb) x/i $pc => 0x8048544 : movaps 0x18(%ebp),%xmm0 (gdb) p/x $ebp $2 = 0xffffd3e0 (gdb) disas Dump of assembler code for function arg0_128: 0x0804853e <+0>: push %ebp 0x0804853f <+1>: mov %esp,%ebp 0x08048541 <+3>: mov 0x8(%ebp),%eax => 0x08048544 <+6>: movaps 0x18(%ebp),%xmm0 0x08048548 <+10>: movaps %xmm0,(%eax) 0x0804854b <+13>: mov 0x8(%ebp),%eax 0x0804854e <+16>: pop %ebp 0x0804854f <+17>: ret $0x4 End of assembler dump. (gdb) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.