Commit 1ce324c3 by Eric Botcazou Committed by Eric Botcazou

PR target/10114 and PR target/10084

	PR target/10114 and PR target/10084
	* dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.

Co-Authored-By: Richard Henderson <rth@redhat.com>

From-SVN: r64947
parent c6cf19a8
2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
Richard Henderson <rth@redhat.com>
PR target/10114 and PR target/10084
* dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
2003-03-27 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
......
......@@ -8423,6 +8423,11 @@ mem_loc_descriptor (rtl, mode)
add_loc_descr (&mem_loc_result, new_loc_descr (DW_OP_deref, 0, 0));
break;
case LO_SUM:
rtl = XEXP (rtl, 1);
/* ... fall through ... */
case LABEL_REF:
/* Some ports can transform a symbol ref into a label ref, because
the symbol ref is too far away and has to be dumped into a constant
......
2003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/sparc-dwarf2.c: New test.
2003-03-27 Roger Sayle <roger@eyesopen.com>
* gcc.c-torture/execute/ieee/fp-cmp-6.c: New test case.
......
/* PR target/10114 */
/* Originator: James Troup <james@nocrew.org> */
/* { dg-do compile { target sparc-*-linux* } } */
/* { dg-options "-g -O1" } */
extern __inline double sqrt (double __x)
{
register double __r;
__asm ("fsqrtd %1,%0" : "=f" (__r) : "f" (__x));
return __r;
}
static double our_skew, max_update_skew;
static double Sqr(double x)
{
return x*x;
}
void REF_SetReference(double skew)
{
double previous_skew, new_skew;
double old_weight, new_weight, sum_weight;
double delta_freq1, delta_freq2;
double skew1, skew2;
previous_skew = our_skew;
skew1 = sqrt((Sqr(delta_freq1) * old_weight + Sqr(delta_freq2) * new_weight) / sum_weight);
skew2 = (previous_skew * old_weight + new_skew * new_weight) / sum_weight;
our_skew = skew1 + skew2;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment