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]

r242000 - in /trunk/gcc: ChangeLog fold-const-c...


Author: marxin
Date: Wed Nov  9 14:07:32 2016
New Revision: 242000

URL: https://gcc.gnu.org/viewcvs?rev=242000&root=gcc&view=rev
Log:
Fix folding of memcmp("a", "a", 2) (PR

	* fold-const-call.c (fold_const_call): Fix the folding.
	* gcc.dg/tree-ssa/builtins-folding-generic.c (main): Add new
	test-case for memcmp.
	* gcc.dg/tree-ssa/builtins-folding-gimple.c: Likewise.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const-call.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/tree-ssa/builtins-folding-generic.c
    trunk/gcc/testsuite/gcc.dg/tree-ssa/builtins-folding-gimple.c


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