This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/49846] New: entryval: missing DW_TAG_GNU_call_site_parameter for stack-passed `double' parameter
- From: "jan.kratochvil at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Jul 2011 17:51:33 +0000
- Subject: [Bug debug/49846] New: entryval: missing DW_TAG_GNU_call_site_parameter for stack-passed `double' parameter
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49846
Summary: entryval: missing DW_TAG_GNU_call_site_parameter for
stack-passed `double' parameter
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jan.kratochvil@redhat.com
CC: jakub@redhat.com
Target: x86_64-fedora16-linux-gnu
FAIL gcc (GCC) 4.7.0 20110725 (experimental)
------------------------------------------------------------------------------
static int v;
static void __attribute__((noinline, noclone))
f (int r1, int r2, int r3, int r4, int r5, int r6, int s1, int s2,
double d1, double d2, double d3, double d4, double d5, double d6,
double d7, double d8, double d9, double da)
{
s1 = 3;
s2 = 4;
d9 = 3.5;
da = 4.5;
v = 1;
}
int
main ()
{
f (1, 2, 3, 4, 5, 6, 11, 12,
1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 11.5, 12.5);
return 0;
}
-------------------------------------------------------------------------------
-Wall -g -O2
-------------------------------------------------------------------------------
(gdb) disass
Dump of assembler code for function f:
0x0000000000400500 <+0>: movl $0x1,0x200426(%rip) # 0x600930 <v>
=> 0x000000000040050a <+10>: retq
End of assembler dump.
(gdb) bt full
#0 f (r1=1, r2=2, r3=3, r4=4, r5=5, r6=6, s1=3, s2=4, d1=1.5, d2=2.5, d3=3.5,
d4=4.5, d5=5.5, d6=6.5, d7=7.5, d8=8.5, d9=3.5, da=4.5) at 6.c:12
s1@entry = 11
s2@entry = 12
#1 0x0000000000400406 in main () at 6.c:17
There is missing:
d9@entry = 11.5
da@entry = 12.5
because there are missing:
DW_TAG_GNU_call_site_parameter
DW_AT_location: DW_OP_breg7 (rsp): 16
DW_AT_GNU_call_site_value: (DW_OP_GNU_const_type: <0x31>
8 byte block: 0 0 0 0 0 0 foo bar )
DW_TAG_GNU_call_site_parameter
DW_AT_location: DW_OP_breg7 (rsp): 24
DW_AT_GNU_call_site_value: (DW_OP_GNU_const_type: <0x31>
8 byte block: 0 0 0 0 0 0 foo baz )