Commit 5cd9edb5 by Alan Modra Committed by Alan Modra

re PR middle-end/27095 (O2 produces duplicate code)

	PR middle-end/27095
	* gcc.dg/pr27095.c: New.

From-SVN: r113340
parent 33a1b314
2006-04-28 Alan Modra <amodra@bigpond.net.au>
PR middle-end/27095
* gcc.dg/pr27095.c: New.
2006-04-27 Mark Mitchell <mark@codesourcery.com> 2006-04-27 Mark Mitchell <mark@codesourcery.com>
PR c++/27292 PR c++/27292
/* { dg-do compile } */
/* { dg-options "-O2" } */
extern void *memset (void *, int, __SIZE_TYPE__);
extern __SIZE_TYPE__ strlen (const char *);
int
main (int argc, char **argv)
{
char x[8] = "abc";
memset (x, argc, strlen (x));
return 0;
}
/* { dg-final { scan-assembler-not "(?n)strlen\(.*\n\)+.*strlen" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment