This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR c/7153
- From: "Eric Botcazou" <ebotcazou at libertysurf dot fr>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 30 Jun 2002 00:35:41 +0200
- Subject: Re: Fix PR c/7153
- References: <019c01c21fb9$9113cd00$5abf53d4@zephyr>
> It should be PR optimization/7153.
And the testcase...
/* PR optimization/7153 */
/* { dg-do assemble } */
/* { dg-options "-O2" } */
/* Verify that GCC doesn't promote a register when its
lifetime is not limited to one basic block. */
void f(char);
void g(void);
void scale(void)
{
int width;
char bytes;
char *src;
if (width)
{
bytes = *src;
g();
width *= bytes;
}
f(bytes);
}
--
Eric Botcazou
ebotcazou@multimania.com