public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/66648] New: [4.9/5/6 regression] incorrect memcpy expansion with unrolled_loop strategy at -O2
@ 2015-06-24 10:41 ebotcazou at gcc dot gnu.org
  2015-06-24 11:46 ` [Bug target/66648] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2015-06-24 10:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66648

            Bug ID: 66648
           Summary: [4.9/5/6 regression] incorrect memcpy expansion with
                    unrolled_loop strategy at -O2
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ebotcazou at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64-*-linux

Created attachment 35840
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35840&action=edit
Testcase

One of the numerous paths of ix86_expand_set_or_movmem using the unrolled_loop
strategy can generate wrong code (buffer overflow) at -O2, when VRP is able to
compute a minimum copying size.

Compile and run the attached testcase with -O2
-mstringop-strategy=unrolled_loop -mtune=nocona on a x86-64/Linux machine.


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

end of thread, other threads:[~2021-08-15  7:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-24 10:41 [Bug target/66648] New: [4.9/5/6 regression] incorrect memcpy expansion with unrolled_loop strategy at -O2 ebotcazou at gcc dot gnu.org
2015-06-24 11:46 ` [Bug target/66648] " rguenth at gcc dot gnu.org
2015-06-24 12:32 ` ubizjak at gmail dot com
2015-06-26 10:13 ` ubizjak at gmail dot com
2015-06-26 11:29 ` ubizjak at gmail dot com
2015-06-26 20:01 ` jakub at gcc dot gnu.org
2015-06-26 20:30 ` jakub at gcc dot gnu.org
2015-06-30 11:04 ` rguenth at gcc dot gnu.org
2015-08-16 17:50 ` uros at gcc dot gnu.org
2015-08-16 17:53 ` uros at gcc dot gnu.org
2015-08-16 17:59 ` ubizjak at gmail dot com
2021-08-15  7:31 ` pinskia at gcc dot gnu.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).