On Friday, August 16, 2002, at 10:07 AM, Stan Shebs wrote:

>   +  if (pfe_operation == PFE_LOAD)
>   +    {
>   +      /* Process the global declarations received directly from the
>   +    precompiled header.  The aim to remove TREE_ASM_WRITTEN
>   +    (decl) marker, if set.  This enables the compiler to emit the
>   +    globals again.  */
>   +      tree precompiled_decls = getdecls ();
>   +      int len = list_length (precompiled_decls);
>   +      int i;
>   +      tree decl;
>   +
>   +      /* Process the decls in reverse order--earliest first.
>   +    Put them into VEC from back to front, then take out from front.  
> */
>   +
>   +      for (i = 0, decl = precompiled_decls; i < len; i++, decl = 
> TREE_CHAIN (decl))
>   +   {
>   +     /* If TREE_ASM_WRITTEN is set then reset it.
>   +        This will enable the emit during rest_of_compilation().  */
>   +     if (TREE_ASM_WRITTEN (decl) == 1)
>   +       TREE_ASM_WRITTEN (decl) = 0;
>   +   }
>   +    }

This loop is now not required. IIRC, TREE_ASM_WRITEN is cleared while 
freezing tree nodes.

-Devang

Reply via email to