public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* patched that caused regression PR opt/8634
@ 2002-12-23 18:06 Janis Johnson
  0 siblings, 0 replies; only message in thread
From: Janis Johnson @ 2002-12-23 18:06 UTC (permalink / raw)
  To: gcc, jh

The regression reported in PR optimization/8634 showed up
starting with this patch (strange but true):

Fri Dec 21 23:30:14 CET 2001  Jan Hubicka  <jh@suse.cz>

	* i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
	(TARGET_CPU_DEFAULT_*): Renumber.

I used this test case that Wolfgang provided.  It aborts
when the wrong code is generated for -O2 on i686-linux:

--------------
/* incorrect code for inlining of memcpy under -O2 */

#include <string.h>
#include <stdlib.h>

int
main ()
{
  int i;
  char buffer[8];
  const char head[8] =
    { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H' };
  memcpy (buffer, head, 8);
  for (i = 0; i < 8; i++)
    if (head[i] != buffer[i])
      abort ();
  return 0;
}
--------------

I've added this information to the PR.

Janis

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-24  0:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-23 18:06 patched that caused regression PR opt/8634 Janis Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).