This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Store motion rewrite


> Hello,

Hello,

> > Has this patch been applied? If so, could you close PR
> > optimization/10312?
>
> no, the patch still is not approved.

Thanks for the quick answer. I've attached a corrected testcase for the PR 
(the previous one had a bogus comment).

-- 
Eric Botcazou
/* PR optimization/10312 */
/* Originator: Peter van Hoof <p.van-hoof@qub.ac.uk> */

/* Verify that the new store motion code correctly
   handles REG_EQUAL notes.  */

struct {
  double a;
  int n[2];
} g = { 0., { 1, 2 } };

int k = 0;

void b(int *j) {}

int main(void)
{
  int j;
  
  for (j=0; j < 2; j++)
    k = ( k > g.n[j] ) ? k : g.n[j];

  k++;
  b(&j);

  return 0;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]