gcc/libgcc
Jakub Jelinek fbd28bc3b2 re PR tree-optimization/53265 (Warn when undefined behavior implies smaller iteration count)
PR tree-optimization/53265
	* common.opt (Waggressive-loop-optimizations): New option.
	* tree-ssa-loop-niter.c: Include tree-pass.h.
	(do_warn_aggressive_loop_optimizations): New function.
	(record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
	if number_of_latch_executions returned constant.
	(estimate_numbers_of_iterations_loop): Call number_of_latch_executions
	early.  If number_of_latch_executions returned constant, set
	nb_iterations_upper_bound back to it.
	* cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
	field.
	* Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
	* doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.

	* gcc.dg/pr53265.c: New test.
	* gcc.dg/torture/pr49518.c: Add -Wno-aggressive-loop-optimizations
	to dg-options.
	* g++.dg/opt/longbranch2.C (EBCOTLut): Double sizes of a2 and a3
	arrays.
	* gcc.dg/tree-ssa/cunroll-10.c (main): Rename to foo.  Add argument
	n, use it as high bound instead of 4.

	* unwind-dw2.c (execute_cfa_program): Avoid
	-Waggressive-array-optimizations warnings for DW_CFA_GNU_window_save
	on targets with DWARF_FRAME_REGISTERS < 32.

	* testsuite/libmudflap.c/fail37-frag.c: Add optimization barrier.

From-SVN: r196650
2013-03-14 10:13:36 +01:00
..
config re PR target/49880 (SuperH: ICE when -m4 is used with -mdiv=call-div1) 2013-03-13 18:09:10 +00:00
soft-fp soft-fp updated from GLIBC upstream. 2012-11-15 18:39:47 +00:00
ChangeLog re PR tree-optimization/53265 (Warn when undefined behavior implies smaller iteration count) 2013-03-14 10:13:36 +01:00
Makefile.in Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
config.host Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
config.in Use i386-cpuinfo.c on all i386 targets 2012-05-10 08:51:39 +00:00
configure bid_functions.h: Check for __GLIBC__ additionally to LINUX when defining format specifiers. 2012-11-05 00:08:42 +01:00
configure.ac gthr.m4: New. 2012-10-15 13:10:30 +00:00
crtstuff.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
dfp-bit.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
dfp-bit.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
divmod.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
empty.mk Makefile.def (target_modules): Add libgcc. 2007-01-04 04:22:37 +00:00
emutls.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
enable-execute-stack-empty.c enable-execute-stack-empty.c (__enable_execute_stack): Add prototype. 2011-06-22 13:20:07 +02:00
enable-execute-stack-mprotect.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
fixed-bit.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
fixed-bit.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
fixed-obj.mk Makefile.in (fixed-funcs,fixed-conv-funcs): filter-out LIB2FUNCS_EXCLUDE before adding them to libgcc-objects, libgcc-s-objects. 2012-08-23 15:41:03 +00:00
floatunsidf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
floatunsisf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
floatunsitf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
floatunsixf.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
fp-bit.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
fp-bit.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gbl-ctors.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gen-fixed.sh fixed-obj.mk: New file to support fine-grain fixed-point functions. 2007-09-17 22:18:13 +00:00
generic-morestack-thread.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
generic-morestack.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
generic-morestack.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gstdint.h dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined. 2008-06-11 00:43:09 +01:00
gthr-posix.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gthr-single.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
gthr.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
libgcc-std.ver.in Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
libgcc2.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
libgcc2.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
libgcov.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
longlong.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
memcmp.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
memcpy.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
memmove.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
memset.c Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
mkheader.sh Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
mkmap-flat.awk Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
mkmap-symver.awk Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
shared-object.mk shared-object.mk (c_flags-$o): Save c_flags. 2011-06-21 14:26:13 +00:00
siditi-object.mk Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
static-object.mk Makefile.in (vis_hide, [...]): Do not make definitions depend on --enable-shared. 2012-08-22 09:36:23 +01:00
sync.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
udivmod.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
udivmodsi4.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-arm-common.inc Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-c.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-compat.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-compat.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-dw2-fde-compat.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-dw2-fde-dip.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-dw2-fde.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-dw2-fde.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-dw2.c re PR tree-optimization/53265 (Warn when undefined behavior implies smaller iteration count) 2013-03-14 10:13:36 +01:00
unwind-dw2.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-generic.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-pe.h Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-seh.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind-sjlj.c Update copyright in libgcc. 2013-02-04 19:06:20 +00:00
unwind.inc Update copyright in libgcc. 2013-02-04 19:06:20 +00:00