This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Store motion rewrite
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- Cc: Roger Sayle <roger at www dot eyesopen dot com>,Toon Moene <toon at moene dot indiv dot nluug dot nl>,gcc-patches at gcc dot gnu dot org
- Date: Wed, 11 Jun 2003 13:03:24 +0200
- Subject: Re: [patch] Store motion rewrite
- References: <Pine.LNX.4.44.0304011919060.8554-100000@www.eyesopen.com> <200306111250.00440.ebotcazou@libertysurf.fr> <20030611105002.GA6591@atrey.karlin.mff.cuni.cz>
> 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;
}