OSDN Git Service

* c-typeck.c (pedantic_lvalue_warning): Deprecate compound
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 8 Nov 2003 01:38:48 +0000 (01:38 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 8 Nov 2003 01:38:48 +0000 (01:38 +0000)
commit804925cd6ac4db622b1bb157f6cebbf7b10583ed
tree71ae503dfdc2ce26ed49c67a3d879c3fde5850ab
parentfd196e129ac94c91a758b95ee464f786cf30a945
* c-typeck.c (pedantic_lvalue_warning): Deprecate compound
expressions as lvalues.
(internal_build_compound_expr): Remove special handling for
non-pedantic case.
* doc/extend.texi: Document that all extended lvalues are now
deprecated.

testsuite:
* gcc.dg/compound-lvalue-1.c: New test.
* gcc.dg/c90-const-expr-2.c, gcc.dg/c99-const-expr-2.c: Remove
some XFAILs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73352 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-const-expr-2.c
gcc/testsuite/gcc.dg/c99-const-expr-2.c
gcc/testsuite/gcc.dg/compound-lvalue-1.c [new file with mode: 0644]