public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Jan Hubicka <jh@suse.cz>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: c/7010: Bug in 3.1 with inline memcpy
Date: Thu, 13 Jun 2002 09:06:00 -0000	[thread overview]
Message-ID: <20020613160603.26132.qmail@sources.redhat.com> (raw)

The following reply was made to PR c/7010; it has been noted by GNATS.

From: Jan Hubicka <jh@suse.cz>
To: Martin Kahlert <martin.kahlert@infineon.com>,
	gcc-patches@gcc.gnu.org, rth@cygnus.com, aj@suse.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c/7010: Bug in 3.1 with inline memcpy
Date: Thu, 13 Jun 2002 18:05:55 +0200

 > #include <string.h>
 > 
 > int main()
 > {
 >  char dst[16];
 >  char src[16];
 >  int tocopy = 5;
 > 
 >  memcpy (dst+5, src, tocopy);
 > 
 >  return 0;
 > }
 
 Oh no, another pasto in my code :(
 I am just proffreading both functions to catch similar bugs, if they
 exists.
 
 Bootstrapped/regtested branch, OK for mainline/branch?
 Ok to add testcase into mainline testsuite?
 
 Thu Jun 13 18:03:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
 	* i386.c (ix86_expand_movstr):  Fix pasto.
 Index: i386.c
 ===================================================================
 RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.c,v
 retrieving revision 1.423
 diff -c -3 -p -r1.423 i386.c
 *** i386.c	12 Jun 2002 14:51:07 -0000	1.423
 --- i386.c	13 Jun 2002 16:03:44 -0000
 *************** ix86_expand_movstr (dst, src, count_exp,
 *** 9913,9919 ****
         if (count == 0 && align < desired_alignment)
   	{
   	  label = gen_label_rtx ();
 ! 	  emit_cmp_and_jump_insns (countreg, GEN_INT (UNITS_PER_WORD - 1),
   				   LEU, 0, counter_mode, 1, label);
   	}
         if (align <= 1)
 --- 9913,9919 ----
         if (count == 0 && align < desired_alignment)
   	{
   	  label = gen_label_rtx ();
 ! 	  emit_cmp_and_jump_insns (countreg, GEN_INT (desired_alignment - 1),
   				   LEU, 0, counter_mode, 1, label);
   	}
         if (align <= 1)


             reply	other threads:[~2002-06-13 16:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-13  9:06 Jan Hubicka [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-06-20 14:10 gerald
2002-06-13  9:26 Richard Henderson
2002-06-13  9:16 Jakub Jelinek
2002-06-13  1:16 Martin Kahlert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020613160603.26132.qmail@sources.redhat.com \
    --to=jh@suse.cz \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).