[llvm-commits] [llvm-gcc-4.2] r60078 - /llvm-gcc-4.2/trunk/gcc/tree-nested.c

Bill Wendling isanbard at gmail.com
Tue Nov 25 18:19:30 PST 2008


Author: void
Date: Tue Nov 25 20:19:29 2008
New Revision: 60078

URL: http://llvm.org/viewvc/llvm-project?rev=60078&view=rev
Log:
Don't treat synthesized block helper functions as being nested. They are created
and then their addresses may be used in more than one function.

Modified:
    llvm-gcc-4.2/trunk/gcc/tree-nested.c

Modified: llvm-gcc-4.2/trunk/gcc/tree-nested.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/tree-nested.c?rev=60078&r1=60077&r2=60078&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/tree-nested.c (original)
+++ llvm-gcc-4.2/trunk/gcc/tree-nested.c Tue Nov 25 20:19:29 2008
@@ -1703,6 +1703,11 @@
       if (TREE_CODE (decl) != FUNCTION_DECL)
         break;
 
+      /* LLVM LOCAL - begin radar 6394879 */
+      if (BLOCK_SYNTHESIZED_FUNC (decl))
+        break;
+      /* LLVM LOCAL - end radar 6394879 */
+
       if (!decl_function_context (decl))
         break;
 





More information about the llvm-commits mailing list