From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28527 invoked by alias); 11 Jul 2011 16:02:59 -0000 Received: (qmail 28516 invoked by uid 22791); 11 Jul 2011 16:02:58 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Jul 2011 16:02:44 +0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/48220] DW_OP_GNU_entry_value/DW_TAG_GNU_call_site_parameter vs register window X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Attachment #23739 is obsolete Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Mon, 11 Jul 2011 16:02:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-07/txt/msg00814.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48220 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #23739|0 |1 is obsolete| | --- Comment #7 from Eric Botcazou 2011-07-11 16:02:28 UTC --- Created attachment 24740 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24740 Tentative patch for SPARC This appears to do the trick for the SPARC. In particular: (gdb) run Starting program: /nile.build/botcazou/gcc-head/sparc-sun-solaris2.8/pr48220 Breakpoint 1, fn2 (a=1, b=2, c=1) at pr48220.c:13 13 { (gdb) disass Dump of assembler code for function fn2: => 0x000106cc <+0>: save %sp, -96, %sp 0x000106d0 <+4>: clr %i0 0x000106d4 <+8>: mov 5, %o0 0x000106d8 <+12>: mov 6, %o1 0x000106dc <+16>: call 0x106c4 0x000106e0 <+20>: mov 7, %o2 0x000106e4 <+24>: rett %i7 + 8 0x000106e8 <+28>: nop End of assembler dump. (gdb) p a $1 = 1 (gdb) p &a Address requested for identifier "a" which is in register $o0 (gdb) nexti 17 } (gdb) p a $2 = 1 (gdb) p &a Address requested for identifier "a" which is in register $i0 (gdb) nexti 15 fn1 (5, 6, 7); (gdb) p a $3 = and the location is DW_OP_GNU_entry_value pointing to $o0 from there on. Jakub, what do you think?