Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/20020715-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR optimization/7153 */ |
2 /* Verify that GCC doesn't promote a register when its | |
3 lifetime is not limited to one basic block. */ | |
4 | |
5 void f(char); | |
6 void g(void); | |
7 | |
8 void scale(void) | |
9 { | |
10 int width; | |
11 char bytes; | |
12 char *src; | |
13 | |
14 if (width) | |
15 { | |
16 bytes = *src; | |
17 g(); | |
18 width *= bytes; | |
19 } | |
20 | |
21 f(bytes); | |
22 } |