Go to file
Joseph Myers 207bf4854d re PR c/461 (non-lvalue arrays)
* c-common.c (c_expand_expr_stmt): Apply default conversions to
	non-lvalue arrays if C99.
	* c-typeck.c (default_conversion): Split out code handling
	array-to-pointer and function-to-pointer conversions into a
	separate default_function_array_conversion function.
	(default_function_array_conversion): New function.  Keep track of
	whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
	arrays unchanged outside C99 mode instead of giving an error for
	them.
	(build_component_ref): Use pedantic_non_lvalue when handling
	COMPOUND_EXPR.  Don't handle COND_EXPR specially.
	(convert_arguments): Use default_function_array_conversion.
	(build_unary_op): For ADDR_EXPR, take a flag indicating whether
	non-lvalues are OK.
	(unary_complex_lvalue): Likewise.
	(internal_build_compound_expr): Use
	default_function_array_conversion.  Apply default conversions to
	function in compound expression.
	(build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
	Use default_function_array_conversion.
	* doc/extend.texi: Update documentation of subscripting non-lvalue
	arrays.
	Fixes PR c/461.

testsuite:
	* gcc.dg/c90-array-lval-1.c, gcc.dg/c90-array-lval-2.c,
	gcc.dg/c99-array-lval-1.c, gcc.dg/c99-array-lval-2.c: Remove
	XFAILs.  Adjust expected error texts.
	* gcc.c-torture/compile/20011106-1.c,
	gcc.c-torture/compile/20011106-2.c, gcc.dg/c90-array-lval-3.c,
	gcc.dg/c90-array-lval-4.c, gcc.dg/c90-array-lval-5.c,
	gcc.dg/c99-array-lval-3.c, gcc.dg/c99-array-lval-4.c,
	gcc.dg/c99-array-lval-5.c: New tests.

From-SVN: r46805
2001-11-06 12:39:36 +00:00
boehm-gc solaris_threads.h: Update to use GC_SOLARIS_THREADS. 2001-10-23 23:21:39 +00:00
config acinclude.m4: Fix spelling error of "separate" as "seperate". 2001-10-07 19:02:46 +01:00
contrib crontab: Build weekly snapshots. 2001-10-08 17:16:56 +01:00
fastjar For PR java/4295: 2001-10-17 15:57:03 +00:00
gcc re PR c/461 (non-lvalue arrays) 2001-11-06 12:39:36 +00:00
include * include/safe-ctype.h (_sch_isbasic, IS_ISOBASIC): New. 2001-10-24 19:29:16 +00:00
INSTALL
libchill
libf2c Daily bump. 2001-11-06 08:16:43 +00:00
libffi Implement Darwin PowerPC ABI. 2001-10-09 06:32:16 +01:00
libiberty remove trailing whitespace 2001-11-04 20:11:12 -05:00
libjava Class.h (Class): Made _Jv_BytecodeVerifier a friend. 2001-11-05 23:39:54 +00:00
libobjc Rewritten from scratch class lookup internals - getting a good performance 2001-10-29 21:24:48 +00:00
libstdc++-v3 Daily bump. 2001-11-06 08:16:43 +00:00
maintainer-scripts update_web_docs: Eliminate warnings about keeping files from web page preprocessing. 2001-11-05 09:55:25 +00:00
zlib
.cvsignore
ChangeLog * Makefile.in (MAKEINFO): Use "missing" for makeinfo older than 4.0. 2001-11-06 07:15:44 +00:00
config-ml.in
config.guess config.sub: Import from master sources, rev 1.226. 2001-11-05 01:52:42 +00:00
config.if
config.sub config.sub: Import from master sources, rev 1.226. 2001-11-05 01:52:42 +00:00
configure * ChangeLog, configure: Fix spelling errors. 2001-10-28 12:08:43 +00:00
configure.in configure.in (noconfigdirs): Disable libgcj. 2001-11-03 22:00:58 +00:00
COPYING
COPYING.LIB
install-sh
libtool.m4
ltcf-c.sh backport: ltcf-c.sh: Use $objext, not $ac_objext. 2001-09-01 00:47:19 +00:00
ltcf-cxx.sh backport: ltcf-c.sh: Use $objext, not $ac_objext. 2001-09-01 00:47:19 +00:00
ltcf-gcj.sh backport: ltcf-c.sh: Use $objext, not $ac_objext. 2001-09-01 00:47:19 +00:00
ltconfig backport: ltcf-c.sh: Use $objext, not $ac_objext. 2001-09-01 00:47:19 +00:00
ltmain.sh backport: ltcf-c.sh: Use $objext, not $ac_objext. 2001-09-01 00:47:19 +00:00
MAINTAINERS configure.in (noconfigdirs): Disable libgcj. 2001-11-03 22:00:58 +00:00
Makefile.in * Makefile.in (MAKEINFO): Use "missing" for makeinfo older than 4.0. 2001-11-06 07:15:44 +00:00
missing
mkdep
mkinstalldirs
move-if-change
README
symlink-tree
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the file COPYING
for copying permission.  The manuals, and some of the runtime
libraries, are under different terms; see the individual source files
for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs.html for how to report bugs usefully.