public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug tree-optimization/31677] New: gcc.dg/memcpy-1.c tree dump scan fails on several targets @ 2007-04-23 23:25 janis at gcc dot gnu dot org 2007-04-23 23:30 ` [Bug tree-optimization/31677] " pinskia at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 6+ messages in thread From: janis at gcc dot gnu dot org @ 2007-04-23 23:25 UTC (permalink / raw) To: gcc-bugs Test gcc.dg/memcpy-1.c, added on 2006-11-28, has always failed the "optimized" tree dump scan on powerpc64-unknown-linux-gnu. The contents of the scanned file are: ;; Function test (test) Analyzing Edge Insertions. test (a) { int nasty_local$a; struct a nasty_local; <bb 2>: nasty_local.a = nasty_local$a; nasty_local = a; return nasty_local.a; } The dump from a compiler from before this test (and associated fix) were added includes a call to __builtin_memcpy. Should the test check for that string instead of looking for "nasty_local", or is there a real problem that needs to be fixed? The same failure also shows up in archived test results for these targets: arm-non-eabi mipsel-unknown-linux-gnu powerpc-apple-darwin8.5.0 powerpc-ibm-aix5.2.0.0 s390-ibm-linux-gnu sh4-unknown-linux-gnu -- Summary: gcc.dg/memcpy-1.c tree dump scan fails on several targets Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: janis at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31677 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/31677] gcc.dg/memcpy-1.c tree dump scan fails on several targets 2007-04-23 23:25 [Bug tree-optimization/31677] New: gcc.dg/memcpy-1.c tree dump scan fails on several targets janis at gcc dot gnu dot org @ 2007-04-23 23:30 ` pinskia at gcc dot gnu dot org 2008-12-02 22:30 ` janis at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2007-04-23 23:30 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2007-04-24 00:30 ------- A couple of issues here: nasty_local.a = nasty_local$a; is a SRA issue and that should not be needed. The rest is just SRA not doing element copy for the struct (it is not a big issue) and the testcase should just include "--param sra-max-structure-size=32" because what it is testing is that SRA can do the element copy with the removal of memcpy. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-04-24 00:30:40 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31677 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/31677] gcc.dg/memcpy-1.c tree dump scan fails on several targets 2007-04-23 23:25 [Bug tree-optimization/31677] New: gcc.dg/memcpy-1.c tree dump scan fails on several targets janis at gcc dot gnu dot org 2007-04-23 23:30 ` [Bug tree-optimization/31677] " pinskia at gcc dot gnu dot org @ 2008-12-02 22:30 ` janis at gcc dot gnu dot org 2009-02-21 1:32 ` howarth at nitro dot med dot uc dot edu 2009-04-02 18:09 ` janis at gcc dot gnu dot org 3 siblings, 0 replies; 6+ messages in thread From: janis at gcc dot gnu dot org @ 2008-12-02 22:30 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from janis at gcc dot gnu dot org 2008-12-02 22:28 ------- Adding "--param sra-max-structure-size=32" as suggested in comment #1 makes the test pass on powerpc64-linux with -m32 and -m64. Jan, is that an appropriate fix/workaround? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31677 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/31677] gcc.dg/memcpy-1.c tree dump scan fails on several targets 2007-04-23 23:25 [Bug tree-optimization/31677] New: gcc.dg/memcpy-1.c tree dump scan fails on several targets janis at gcc dot gnu dot org 2007-04-23 23:30 ` [Bug tree-optimization/31677] " pinskia at gcc dot gnu dot org 2008-12-02 22:30 ` janis at gcc dot gnu dot org @ 2009-02-21 1:32 ` howarth at nitro dot med dot uc dot edu 2009-04-02 18:09 ` janis at gcc dot gnu dot org 3 siblings, 0 replies; 6+ messages in thread From: howarth at nitro dot med dot uc dot edu @ 2009-02-21 1:32 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from howarth at nitro dot med dot uc dot edu 2009-02-21 01:32 ------- Adding "--param sra-max-structure-size=32" solves the problem on powerpc-apple-darwin9 at both -m32 and -m64 as well. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31677 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/31677] gcc.dg/memcpy-1.c tree dump scan fails on several targets 2007-04-23 23:25 [Bug tree-optimization/31677] New: gcc.dg/memcpy-1.c tree dump scan fails on several targets janis at gcc dot gnu dot org ` (2 preceding siblings ...) 2009-02-21 1:32 ` howarth at nitro dot med dot uc dot edu @ 2009-04-02 18:09 ` janis at gcc dot gnu dot org 3 siblings, 0 replies; 6+ messages in thread From: janis at gcc dot gnu dot org @ 2009-04-02 18:09 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from janis at gcc dot gnu dot org 2009-04-02 18:09 ------- Subject: Bug 31677 Author: janis Date: Thu Apr 2 18:09:19 2009 New Revision: 145466 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145466 Log: PR tree-optimization/31677 * gcc.dg/memcpy-1.c: Add compiler option. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/memcpy-1.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31677 ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <bug-31677-4@http.gcc.gnu.org/bugzilla/>]
* [Bug tree-optimization/31677] gcc.dg/memcpy-1.c tree dump scan fails on several targets [not found] <bug-31677-4@http.gcc.gnu.org/bugzilla/> @ 2012-06-06 9:59 ` rguenth at gcc dot gnu.org 0 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2012-06-06 9:59 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31677 Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-06-06 09:58:42 UTC --- Fixed I suppose (looking at gcc-testresults). ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-06-06 9:59 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-04-23 23:25 [Bug tree-optimization/31677] New: gcc.dg/memcpy-1.c tree dump scan fails on several targets janis at gcc dot gnu dot org 2007-04-23 23:30 ` [Bug tree-optimization/31677] " pinskia at gcc dot gnu dot org 2008-12-02 22:30 ` janis at gcc dot gnu dot org 2009-02-21 1:32 ` howarth at nitro dot med dot uc dot edu 2009-04-02 18:09 ` janis at gcc dot gnu dot org [not found] <bug-31677-4@http.gcc.gnu.org/bugzilla/> 2012-06-06 9:59 ` rguenth 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).