Summary: | Failed optimisation of return of struct argment in memcpy-1.c | ||
---|---|---|---|
Product: | gcc | Reporter: | Andy Hutchinson <hutchinsonandy> |
Component: | middle-end | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | danglin, eric.weddington, gcc-bugs, kkojima, pinskia |
Priority: | P3 | ||
Version: | 4.4.0 | ||
Target Milestone: | --- | ||
Host: | i686-pc-linux-gnu | Target: | |
Build: | i686-pc-linux-gnu | Known to work: | |
Known to fail: | Last reconfirmed: | 2009-02-20 19:49:15 | |
Bug Depends on: | 14295 | ||
Bug Blocks: |
Description
Andy Hutchinson
2008-06-22 13:26:04 UTC
Subject: Re: New: Failed optimisation of return of struct argment in memcpy-1.c On Sun, 22 Jun 2008, hutchinsonandy at gcc dot gnu dot org wrote: > Testcase gcc.dg/memcpy-1.c fails on AVR target. Have you looked at bug 31677 which suggests using the option "--param sra-max-structure-size=32"? If that works for AVR, you could submit a patch to add it to the testcase for all targets. Thanks for information --param sra-max-structure-size=32 does indeed remove test failure and produces optimal code. But changing the testcase does not remove the optimization problem - unless sra-max-structure-size was always used. So there is problem somewhere else to fix. See also: http://gcc.gnu.org/ml/gcc-patches/2007-12/msg01144.html Andy This is really not a task for SRA but for struct copy propagation (which we do not do). See PR14295. As this testcase was for SRA you can either XFAIL it for avr or see if the cost metrics need adjustment. Quite possibly due to cost metrics. They are far from ideal. Will mark test XFAIL until we can investigate and fix. Subject: Bug 36598 Author: hutchinsonandy Date: Mon Jun 30 22:38:34 2008 New Revision: 137298 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=137298 Log: PR target/36598 * gcc.dg/memcpy-1.c: Mark test XFAIL for avr target. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/memcpy-1.c *** Bug 39245 has been marked as a duplicate of this bug. *** Test also fails on powerpc64 with -m32, arm. (In reply to comment #7) > Test also fails on powerpc64 with -m32, arm. And sh4. http://gcc.gnu.org/ml/gcc-testresults/2009-02/msg01952.html Fixed for avr and ppc at least. |