Remove unit-at-a-time checks and flag_inline_trees

Arnaud Charlet charlet@adacore.com
Wed Jul 23 13:37:00 GMT 2008


The Ada part at least looks wrong to me:

> Index: ada/utils.c
> ===================================================================
> *** ada/utils.c	(revision 138005)
> --- ada/utils.c	(working copy)
> *************** end_subprog_body (tree body)
> *** 2217,2224 ****
>   
>     /* Deal with inline.  If declared inline or we should default to inline,
>        set the flag in the decl.  */
> !   DECL_INLINE (fndecl)
> !     = DECL_DECLARED_INLINE_P (fndecl) || flag_inline_trees == 2;
>   
>     /* We handle pending sizes via the elaboration of types, so we don't
>        need to save them.  */
> --- 2217,2223 ----
>   
>     /* Deal with inline.  If declared inline or we should default to inline,
>        set the flag in the decl.  */
> !   DECL_INLINE (fndecl) = 1;
>   
>     /* We handle pending sizes via the elaboration of types, so we don't
>        need to save them.  */

You're unconditionally setting the inline flag here as far as I can see,
which looks wrong.

Arno



More information about the Gcc-patches mailing list