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]

[PATCH GCC/03]New option warning missed optimization on loops whose counter may overflow


Hi,
This patch adds new option -Wmissed-loop-optimizations warning on loops whose counter may overflow, as well as makes -Wunsafe-loop-optimizations an alias to the new option.
Bootstrap and test on x86_64 ongoing.  Is it OK?

Thanks,
bin

2016-07-20  Bin Cheng  <bin.cheng@arm.com>

	* common.opt (Wmissed-loop-optimizations): New option.
	(Wunsafe-loop-optimizations): Alias to Wmissed-loop-optimizations.
	* doc/invoke.texi (Wmissed-loop-optimizations): Ditto.
	(Wunsafe-loop-optimizations): Alias to Wmissed-loop-optimizations.
	* tree-ssa-loop-niter.c (number_of_iterations_exit): Use option
	Wmissed-loop-optimizations.

Attachment: missed-loop-optimizations-20160720.txt
Description: missed-loop-optimizations-20160720.txt


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