gcc/gcc ChangeLog.apple-ppc c-opts.c c-typeck. ...

zlaski@gcc.gnu.org zlaski@gcc.gnu.org
Mon Jan 24 00:12:00 GMT 2005


CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	apple-ppc-branch
Changes by:	zlaski@gcc.gnu.org	2005-01-24 00:12:29

Modified files:
	gcc            : ChangeLog.apple-ppc c-opts.c c-typeck.c c.opt 
	gcc/cp         : ChangeLog.apple-ppc cp-tree.h tree.c typeck.c 
	gcc/doc        : invoke.texi 
	gcc/testsuite  : ChangeLog.apple-ppc 
	gcc/testsuite/g++.dg/ext: lvalue-cast-1.cpp 
	gcc/testsuite/gcc.dg: cond-lvalue-1.c lvalue-cast-1.c 
Added files:
	gcc/testsuite/g++.dg/ext: lvalue-cond-1.cpp 
	gcc/testsuite/gcc.dg: lvalue-cond-1.c 

Log message:
	[gcc/ChangeLog.apple-ppc]
	2005-01-23  Ziemowit Laski  <zlaski@apple.com>
	
	Radar 3961973
	* c-common.c (flag_lvalue_cast_assign): Remove.
	* c-common.h (flag_lvalue_cast_assign): Remove.
	* c-opts.c (c_common_handle_option): Remove
	'-flvalue-cast-assign' handling.
	* c-typeck.c (lvalue_or_else): Change first parameter from
	'tree' to 'tree *'; handle conditional lvalues in addition
	to lvalue casts; when rewriting expressions, create a new
	tree instead of clobbering an existing one.
	(build_unary_op, build_modify_expr, build_asm_expr):
	Adjust calls to lvalue_or_else().
	* c.opt: Rename -flvalue-cast-assign to -fnon-lvalue-assign
	and add Var(...) and Init(...) annotation to create a flag.
	* doc/invoke.texi: Likewise; add description of lvalue
	conditional expressions and how they are transformed.
	
	[gcc/cp/ChangeLog.apple-ppc]
	2005-01-23  Ziemowit Laski  <zlaski@apple.com>
	
	Radar 3961973
	* cp-tree.h (lvalue_or_else): Change type of first parameter
	from 'tree' to 'tree *'.
	* tree.c (lvalue_or_else): Change first parameter from
	'tree' to 'tree *'; handle conditional lvalues in addition
	to lvalue casts; when rewriting expressions, create a new
	tree instead of clobbering an existing one.
	* typeck.c (build_unary_op, build_modify_expr): Adjust
	calls to lvalue_or_else().
	
	[gcc/testsuite/ChangeLog.apple-ppc]
	2005-01-23  Ziemowit Laski  <zlaskI@apple.com>
	
	Radar 3961973
	* gcc.dg/cond-lvalue-1.c: Add '-fno-non-lvalue-assign';
	adjust expected line number for error message.
	* g++.dg/ext/lvalue-cast-1.cpp: Rename -flvalue-cast-assign
	to -fnon-lvalue-assign; adjust wording of warning message.
	* gcc.dg/lvalue-cast-1.c: Likewise.
	* g++.dg/ext/lvalue-cond-1.cpp: New.
	* gcc.dg/lvalue-cond-1.c: New.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.279&r2=1.1.2.280
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-opts.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.7.2.30.2.30&r2=1.7.2.30.2.31
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.196.2.43.2.23&r2=1.196.2.43.2.24
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c.opt.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.11.2.9.2.23&r2=1.11.2.9.2.24
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.34&r2=1.1.2.35
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-tree.h.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.719.2.53.2.18&r2=1.719.2.53.2.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/tree.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.286.2.48.2.12&r2=1.286.2.48.2.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.408.2.43.2.26&r2=1.408.2.43.2.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/invoke.texi.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.152.2.84.2.45&r2=1.152.2.84.2.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.apple-ppc.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.89&r2=1.1.2.90
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/lvalue-cond-1.cpp.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/ext/lvalue-cast-1.cpp.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.1&r2=1.1.2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/lvalue-cond-1.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/cond-lvalue-1.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.2&r2=1.1.2.2.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/lvalue-cast-1.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.1.2.1&r2=1.1.2.2



More information about the Gcc-cvs mailing list