]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - gcc/patches/gcc47-pr33763.patch0
gcc: Update to 4.7.0.
[people/arne_f/ipfire-3.x.git] / gcc / patches / gcc47-pr33763.patch0
similarity index 86%
rename from gcc/patches/gcc46-pr33763.patch0
rename to gcc/patches/gcc47-pr33763.patch0
index 86c8ac7e1386f6f61204d87615a9cdba5e747d3a..0cf0723eab8e9d6fb1ac424666a7ab4230b9030c 100644 (file)
 
 --- gcc/tree-inline.c.jj       2007-11-06 09:29:04.000000000 +0100
 +++ gcc/tree-inline.c  2007-11-06 16:19:12.000000000 +0100
-@@ -3157,6 +3157,12 @@ expand_call_inline (basic_block bb, gimp
+@@ -3817,6 +3817,12 @@ expand_call_inline (basic_block bb, gimp
        goto egress;
  
        if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn))
-+      /* For extern inline functions that get redefined we always
-+         silently ignored alway_inline flag. Better behaviour would
-+         be to be able to keep both bodies and use extern inline body
-+         for inlining, but we can't do that because frontends overwrite
-+         the body.  */
++          /* For extern inline functions that get redefined we always
++           silently ignored always_inline flag. Better behaviour would
++           be to be able to keep both bodies and use extern inline body
++           for inlining, but we can't do that because frontends overwrite
++           the body.  */
 +        && !cg_edge->callee->local.redefined_extern_inline
          /* Avoid warnings during early inline pass. */
-         && cgraph_global_info_ready)
-       {
+         && cgraph_global_info_ready
+         /* PR 20090218-1_0.c. Body can be provided by another module. */
 --- gcc/testsuite/gcc.dg/pr33763.c.jj  2007-11-06 16:19:12.000000000 +0100
 +++ gcc/testsuite/gcc.dg/pr33763.c     2007-11-06 16:19:12.000000000 +0100
 @@ -0,0 +1,60 @@