Commit | Line | Data |
---|---|---|
ae86ce61 | 1 | $DragonFly: src/gnu/usr.bin/cc34/cc_prep/patches/loop.c.patch,v 1.4 2005/08/27 21:03:51 joerg Exp $ |
de927194 | 2 | |
a0d7b2c0 JS |
3 | =================================================================== |
4 | RCS file: /home/joerg/wd/repository/dragonflybsd/src/contrib/gcc-3.4/gcc/loop.c,v | |
5 | retrieving revision 1.2 | |
6 | diff -u -r1.2 loop.c | |
7 | --- loop.c 20 Dec 2004 19:23:24 -0000 1.2 | |
8 | +++ loop.c 20 Dec 2004 20:48:11 -0000 | |
ae86ce61 | 9 | @@ -6525,6 +6525,14 @@ |
de927194 JS |
10 | if (GET_CODE (*mult_val) == USE) |
11 | *mult_val = XEXP (*mult_val, 0); | |
12 | ||
13 | +#ifndef FRAME_GROWS_DOWNWARD | |
14 | + if (flag_propolice_protection | |
15 | + && GET_CODE (*add_val) == PLUS | |
16 | + && (XEXP (*add_val, 0) == frame_pointer_rtx | |
17 | + || XEXP (*add_val, 1) == frame_pointer_rtx)) | |
18 | + return 0; | |
19 | +#endif | |
20 | + | |
21 | if (is_addr) | |
22 | *pbenefit += address_cost (orig_x, addr_mode) - reg_address_cost; | |
23 | else |