This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/52857] DW_OP_GNU_regval_type is generated with INVALID_REGNUM
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 06 Apr 2012 00:50:50 +0000
- Subject: [Bug debug/52857] DW_OP_GNU_regval_type is generated with INVALID_REGNUM
- Auto-submitted: auto-generated
- References: <bug-52857-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52857
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2012-04-06 00:50:50 UTC ---
A small testcase:
[hjl@gnu-6 delta]$ cat testcase.c
extern void get_BID128 (int *);
void
__bid128_div (long long bid_y)
{
int res;
get_BID128 (&res);
}
[hjl@gnu-6 delta]$ gcc -mx32 -maddress-mode=long -g -O testcase.c -c && readelf
-w testcase.o | grep "DW_OP_GNU_regval_type: 4294967295"
<79> DW_AT_GNU_call_site_value: 21 byte block: f5 ff ff ff ff f 25 f4 25
8 ec ff ff ff ff ff ff ff 22 f7 2c (DW_OP_GNU_regval_type: 4294967295 (r-1)
<0x25>; DW_OP_GNU_const_type: <0x25> 8 byte block: ec ff ff ff ff ff ff ff ;
DW_OP_plus; DW_OP_GNU_convert <0x2c>)
[hjl@gnu-6 delta]$