Message ID | mcr7hhs2z9d.fsf@google.com |
---|---|
State | New |
Headers | show |
diff -r 93e41ce440bb go/gogo-tree.cc --- a/go/gogo-tree.cc Fri Oct 08 13:35:50 2010 -0700 +++ b/go/gogo-tree.cc Fri Oct 08 13:37:07 2010 -0700 @@ -13,6 +13,7 @@ extern "C" { +#include "toplev.h" #include "tree.h" #include "gimple.h" #include "tree-iterator.h" @@ -3075,6 +3076,7 @@ TYPE_QUAL_CONST)); TREE_READONLY(decl) = 1; TREE_CONSTANT(decl) = 1; + DECL_ARTIFICIAL (decl) = 1; // Store the new decl now. This breaks a potential recursion in // which the length of an array calls the len function on another