This is the mail archive of the gcc-patches@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]

Re: More empty body checks


Ping?

On Apr 25, 2007, at 6:09 PM, Mike Stump wrote:
This patch extends upon http://gcc.gnu.org/PR5520 and adds checking
for while and for statements.  This is fairly safe, as we can come
very close to only triggering on clearly bad forms.  The false
positives are further reduced when mapped locations are in use.

Ok?

2007-04-25 Mike Stump <mrs@apple.com>

	* parser.c (check_empty_body): Add.
	(cp_parser_iteration_statement): Add call to check_empty_body.

* g++.old-deja/g++.mike/empty.C: Add.

http://gcc.gnu.org/ml/gcc-patches/2007-04/msg01755.html



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