public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/27226]  New: Compiler looses track of alignment for emit_block_move
@ 2006-04-20 15:53 amylaar at gcc dot gnu dot org
  2006-04-20 15:59 ` [Bug c/27226] " amylaar at gcc dot gnu dot org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2006-04-20 15:53 UTC (permalink / raw)
  To: gcc-bugs

The compiler used to use move_by_pieces for sh-elf at -O2 for the trivial
strcpy calls in dhrystone, but now it uses memcpy.  I've found that this
is because it no longer knows that the two MEM arguments are aligned.
Here is a pruned-down testcase:

char *strcpy (char *, const char *);

extern void g ();


f ()
{
  struct {
    int i;
    char str[31];
  } s;

  strcpy (s.str, "text text text text text text text text");
  g (s.str);
}


-- 
           Summary: Compiler looses track of alignment for emit_block_move
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27226


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2006-09-18  9:17 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-20 15:53 [Bug c/27226] New: Compiler looses track of alignment for emit_block_move amylaar at gcc dot gnu dot org
2006-04-20 15:59 ` [Bug c/27226] " amylaar at gcc dot gnu dot org
2006-04-20 16:05 ` rguenth at gcc dot gnu dot org
2006-04-20 18:05 ` [Bug middle-end/27226] " amylaar at gcc dot gnu dot org
2006-04-20 18:10 ` amylaar at gcc dot gnu dot org
2006-04-20 18:58 ` amylaar at gcc dot gnu dot org
2006-04-20 20:38 ` amylaar at gcc dot gnu dot org
2006-04-20 20:47 ` rguenth at gcc dot gnu dot org
2006-04-20 21:09 ` amylaar at gcc dot gnu dot org
2006-04-20 21:23 ` rguenth at gcc dot gnu dot org
2006-04-27 15:35 ` amylaar at gcc dot gnu dot org
2006-05-08 14:23 ` rguenth at gcc dot gnu dot org
2006-05-08 21:10 ` amylaar at gcc dot gnu dot org
2006-05-09  7:50 ` rguenth at gcc dot gnu dot org
2006-06-07 21:29 ` ramana dot radhakrishnan at codito dot com
2006-09-01 16:55 ` rguenth at gcc dot gnu dot org
2006-09-01 16:56 ` [Bug middle-end/27226] [4.1/4.2 Regression] " rguenth at gcc dot gnu dot org
2006-09-01 20:25 ` rguenth at gcc dot gnu dot org
2006-09-01 20:27 ` [Bug middle-end/27226] [4.1 " rguenth at gcc dot gnu dot org
2006-09-18  9:16 ` rguenth at gcc dot gnu dot org
2006-09-18  9:17 ` rguenth at gcc dot gnu dot org

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).