This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r122851 - in /trunk: ChangeLog gcc/ChangeLog gc...


Author: spark
Date: Mon Mar 12 18:31:39 2007
New Revision: 122851

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122851
Log:
ChangeLog:

2007-03-12  Seongbae Park <seongbae.park@gmail.com>

	* gcc/doc/invoke.texi (Wvla): New warning.

gcc/ChangeLog:

2007-03-12  Seongbae Park <seongbae.park@gmail.com>

	* c-decl.c (warn_variable_length_array): New function.
	Refactored from grokdeclarator to handle warn_vla
	and handle unnamed array case.
	(grokdeclarator): Refactored VLA warning case.
	* c.opt (Wvla): New flag.

gcc/cp/ChangeLog:

2007-03-12  Seongbae Park <seongbae.park@gmail.com>

	* decl.c (compute_array_index_type): New warning flag warn_vla.

gcc/testsuite/ChangeLog:

2007-03-12  Seongbae Park <seongbae.park@gmail.com>

 	* gcc.dg/wvla-1.c: New test
 	* gcc.dg/wvla-2.c: New test
 	* gcc.dg/wvla-3.c: New test
 	* gcc.dg/wvla-4.c: New test
 	* gcc.dg/wvla-5.c: New test
 	* gcc.dg/wvla-6.c: New test
 	* gcc.dg/wvla-7.c: New test
	* g++.dg/warn/Wvla-1.C: New test
	* g++.dg/warn/Wvla-2.C: New test
	* g++.dg/warn/Wvla-3.C: New test


Added:
    trunk/gcc/testsuite/g++.dg/warn/Wvla-1.C
    trunk/gcc/testsuite/g++.dg/warn/Wvla-2.C
    trunk/gcc/testsuite/g++.dg/warn/Wvla-3.C
    trunk/gcc/testsuite/gcc.dg/wvla-1.c
    trunk/gcc/testsuite/gcc.dg/wvla-2.c
    trunk/gcc/testsuite/gcc.dg/wvla-3.c
    trunk/gcc/testsuite/gcc.dg/wvla-4.c
    trunk/gcc/testsuite/gcc.dg/wvla-5.c
    trunk/gcc/testsuite/gcc.dg/wvla-6.c
    trunk/gcc/testsuite/gcc.dg/wvla-7.c
Modified:
    trunk/ChangeLog
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/c.opt
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/doc/invoke.texi
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]