mirror of git://gcc.gnu.org/git/gcc.git
Allow arg_pointer_rtx/frame_pointer_rtx for based_loc_descr
gcc/ PR debug/52857 * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and frame_pointer_rtx for based_loc_descr. gcc/testsuite/ PR debug/52857 * gcc.target/i386/pr52857-1.c: New. * gcc.target/i386/pr52857-2.c: Likewise. From-SVN: r190647
This commit is contained in:
parent
4aeaaca35f
commit
a9b94d0dd9
|
|
@ -1,3 +1,9 @@
|
||||||
|
2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR debug/52857
|
||||||
|
* dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
|
||||||
|
frame_pointer_rtx for based_loc_descr.
|
||||||
|
|
||||||
2012-08-24 Martin Jambor <mjambor@suse.cz>
|
2012-08-24 Martin Jambor <mjambor@suse.cz>
|
||||||
|
|
||||||
* predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl
|
* predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl
|
||||||
|
|
|
||||||
|
|
@ -11253,6 +11253,8 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode,
|
||||||
case REG:
|
case REG:
|
||||||
if (GET_MODE_CLASS (mode) != MODE_INT
|
if (GET_MODE_CLASS (mode) != MODE_INT
|
||||||
|| (GET_MODE_SIZE (mode) > DWARF2_ADDR_SIZE
|
|| (GET_MODE_SIZE (mode) > DWARF2_ADDR_SIZE
|
||||||
|
&& rtl != arg_pointer_rtx
|
||||||
|
&& rtl != frame_pointer_rtx
|
||||||
#ifdef POINTERS_EXTEND_UNSIGNED
|
#ifdef POINTERS_EXTEND_UNSIGNED
|
||||||
&& (mode != Pmode || mem_mode == VOIDmode)
|
&& (mode != Pmode || mem_mode == VOIDmode)
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -11525,7 +11527,9 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode,
|
||||||
case PLUS:
|
case PLUS:
|
||||||
plus:
|
plus:
|
||||||
if (is_based_loc (rtl)
|
if (is_based_loc (rtl)
|
||||||
&& GET_MODE_SIZE (mode) <= DWARF2_ADDR_SIZE
|
&& (GET_MODE_SIZE (mode) <= DWARF2_ADDR_SIZE
|
||||||
|
|| XEXP (rtl, 0) == arg_pointer_rtx
|
||||||
|
|| XEXP (rtl, 0) == frame_pointer_rtx)
|
||||||
&& GET_MODE_CLASS (mode) == MODE_INT)
|
&& GET_MODE_CLASS (mode) == MODE_INT)
|
||||||
mem_loc_result = based_loc_descr (XEXP (rtl, 0),
|
mem_loc_result = based_loc_descr (XEXP (rtl, 0),
|
||||||
INTVAL (XEXP (rtl, 1)),
|
INTVAL (XEXP (rtl, 1)),
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
PR debug/52857
|
||||||
|
* gcc.target/i386/pr52857-1.c: New.
|
||||||
|
* gcc.target/i386/pr52857-2.c: Likewise.
|
||||||
|
|
||||||
2012-08-23 Richard Sandiford <rdsandiford@googlemail.com>
|
2012-08-23 Richard Sandiford <rdsandiford@googlemail.com>
|
||||||
|
|
||||||
* gcc.target/mips/code-readable-4.c: New test.
|
* gcc.target/mips/code-readable-4.c: New test.
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,10 @@
|
||||||
|
/* { dg-do compile { target { ! { ia32 } } } } */
|
||||||
|
/* { dg-options "-g -O -mx32 -maddress-mode=long" } */
|
||||||
|
|
||||||
|
extern void get_BID128 (int *);
|
||||||
|
void
|
||||||
|
__bid128_div (void)
|
||||||
|
{
|
||||||
|
int res;
|
||||||
|
get_BID128 (&res);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
/* { dg-do compile { target { ! { ia32 } } } } */
|
||||||
|
/* { dg-options "-g -O -mx32 -maddress-mode=long" } */
|
||||||
|
|
||||||
|
void uw_init_context_1 (void *);
|
||||||
|
void _Unwind_ForcedUnwind (void)
|
||||||
|
{
|
||||||
|
uw_init_context_1 (__builtin_dwarf_cfa ());
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue