Include ProPolice suport for GCC 3.4.
[dragonfly.git] / gnu / usr.bin / cc34 / cc_prep / patches / integrate.c.patch
1 $DragonFly: src/gnu/usr.bin/cc34/cc_prep/patches/integrate.c.patch,v 1.1 2004/06/19 10:30:08 joerg Exp $
2
3 --- ../gcc.orig/integrate.c     2004-06-18 23:08:11.000000000 +0200
4 +++ integrate.c 2004-06-18 23:28:25.000000000 +0200
5 @@ -393,6 +393,10 @@
6    /* These args would always appear unused, if not for this.  */
7    TREE_USED (copy) = 1;
8  
9 +  /* The inlined variable is marked as INLINE not to sweep by propolice */
10 +  if (flag_propolice_protection && TREE_CODE (copy) == VAR_DECL)
11 +    DECL_COPIED (copy) = 1;
12 +
13    /* Set the context for the new declaration.  */
14    if (!DECL_CONTEXT (decl))
15      /* Globals stay global.  */
16 @@ -1970,6 +1974,10 @@
17  
18               seq = get_insns ();
19               end_sequence ();
20 +#ifdef ARGS_GROWS_DOWNWARD
21 +             if (flag_propolice_protection && GET_CODE (seq) == SET)
22 +               RTX_INTEGRATED_P (SET_SRC (seq)) = 1;
23 +#endif
24               emit_insn_after (seq, map->insns_at_start);
25               return temp;
26             }