This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Lowering of VLA's, second attempt
On Tue, 26 Aug 2003 22:30:36 +0200, Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> wrote:
> --- 7192,7206 ----
> ? !TREE_ASM_WRITTEN (var)
> : !DECL_RTL_SET_P (var))
> {
> ! if (DECL_DEFER_OUTPUT (var))
> ! {
> ! /* Prepare a mem & address for the decl. */
> ! rtx x = gen_rtx_MEM (DECL_MODE (var),
> ! gen_reg_rtx (Pmode));
> ! set_mem_attributes (x, var, 1);
> ! SET_DECL_RTL (var, x);
> ! }
> ! else if ((*lang_hooks.expand_decl) (var))
> /* OK. */;
OK. I might also add an
#ifdef ENABLE_CHECKING
if (TREE_STATIC (var))
abort ();
#endif
to make sure that we don't try to do this for local statics.
Jason