[Bug other/19896] [treelang] Static variables don't work

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Feb 24 20:31:00 GMT 2005


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-24 16:23 -------
Subject: Bug 19896

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	phython@gcc.gnu.org	2005-02-24 16:23:15

Modified files:
	gcc/treelang   : ChangeLog treetree.c 

Log message:
	2005-02-24  James A. Morrison  <phython@gcc.gnu.org>
	
	PR other/19896
	* treetree.c (tree_code_create_variable): Initialize DECL_EXTERNAL,
	TREE_PUBLIC, and TREE_STATIC for var_decl to zero.  Don't call
	rest_of_decl_compilation on static variables.
	(pushdecl): Put DECL_EXPRs into the current BIND_EXPR for automatic
	variables.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/ChangeLog.diff?cvsroot=gcc&r1=1.106&r2=1.107
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/treelang/treetree.c.diff?cvsroot=gcc&r1=1.54&r2=1.55



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19896



More information about the Gcc-bugs mailing list