gcc/gcc ChangeLog.apple-ppc c-common.c c-commo ...

zlaski@gcc.gnu.org zlaski@gcc.gnu.org
Sun Jan 9 07:12:00 GMT 2005


CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	apple-ppc-branch
Changes by:	zlaski@gcc.gnu.org	2005-01-09 07:12:18

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

Log message:
	[gcc/ChangeLog.apple-ppc]
	2005-01-08  Ziemowit Laski  <zlaski@apple.com>
	
	Radar 3913725
	* c-common.c (flag_lvalue_cast_assign): New global variable.
	* c-common.h (flag_lvalue_cast_assign): Forward declare.
	* c-opts.c (c_common_handle_option): Handle
	'-f[no-]lvalue-cast-assign'.
	* c-typeck.c (lvalue_or_else): If expression is not an lvalue,
	check if it is a cast of an lvalue; if so, and if the cast
	involves POD types with identical size and aligment,
	rewrite '(type)expr' into '*(type *)&expr' and allow the
	result as an lvalue.
	* c.opt (flvalue-cast-assign): New flag.
	* invoke.texi: Document '-f[no-]lvalue-cast assign' flag.
	
	[gcc/cp/ChangeLog.apple-ppc]
	2005-01-08  Ziemowit Laski  <zlaski@apple.com>
	
	Radar 3913725
	* tree.c (lvalue_or_else): If expression is not an lvalue,
	check if it is a cast of an lvalue; if so, and if the cast
	involves POD types with identical size and aligment,
	rewrite '(type)expr' into '*(type *)&expr' and allow the
	result as an lvalue.
	
	[gcc/testsuite/ChangeLog.apple-ppc]
	2005-01-08  Ziemowit Laski  <zlaski@apple.com>
	
	Radar 3913725
	* g++.dg/ext/lvalue-cast-1.cpp: New.
	* gcc.dg/lvalue-cast-1.c.

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.260&r2=1.1.2.261
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.344.2.64.2.39&r2=1.344.2.64.2.40
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.h.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.141.2.48.2.23&r2=1.141.2.48.2.24
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.28&r2=1.7.2.30.2.29
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.22&r2=1.196.2.43.2.23
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.20&r2=1.11.2.9.2.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&only_with_tag=apple-ppc-branch&r1=1.332.2.46.2.89&r2=1.332.2.46.2.90
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.26&r2=1.1.2.27
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.11&r2=1.286.2.48.2.12
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.43&r2=1.152.2.84.2.44
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.78&r2=1.1.2.79
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=NONE&r2=1.1.2.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=NONE&r2=1.1.2.1



More information about the Gcc-cvs mailing list