Bug 28969 - FAIL: gcc.dg/nrv3.c scan-tree-dump-times return slot optimization 2
Summary: FAIL: gcc.dg/nrv3.c scan-tree-dump-times return slot optimization 2
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.2.0
: P3 normal
Target Milestone: 4.2.0
Assignee: Not yet assigned to anyone
URL: http://gcc.gnu.org/ml/gcc-patches/200...
Keywords: patch
Depends on:
Blocks:
 
Reported: 2006-09-07 03:05 UTC by John David Anglin
Modified: 2006-09-11 18:56 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-09-09 05:50:43


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2006-09-07 03:05:07 UTC
Executing on host: /home/dave/gnu/gcc-4.2/objdir/gcc/xgcc -B/home/dave/gnu/gcc-4
.2/objdir/gcc/ /home/dave/gnu/gcc-4.2/gcc/gcc/testsuite/gcc.dg/nrv3.c   -O -fdum
p-tree-optimized -fno-show-column -S  -o nrv3.s    (timeout = 300)
PASS: gcc.dg/nrv3.c (test for excess errors)
FAIL: gcc.dg/nrv3.c scan-tree-dump-times return slot optimization 2
Comment 1 jsm-csl@polyomino.org.uk 2006-09-07 14:46:10 UTC
Subject: Re:   New: FAIL: gcc.dg/nrv3.c scan-tree-dump-times
 return slot optimization 2

On Thu, 7 Sep 2006, danglin at gcc dot gnu dot org wrote:

> Executing on host: /home/dave/gnu/gcc-4.2/objdir/gcc/xgcc
> -B/home/dave/gnu/gcc-4
> .2/objdir/gcc/ /home/dave/gnu/gcc-4.2/gcc/gcc/testsuite/gcc.dg/nrv3.c   -O
> -fdum
> p-tree-optimized -fno-show-column -S  -o nrv3.s    (timeout = 300)
> PASS: gcc.dg/nrv3.c (test for excess errors)
> FAIL: gcc.dg/nrv3.c scan-tree-dump-times return slot optimization 2
> GCC target triplet: hppa*-*-* (32-bit)

I see this failing on hppa64 as well.

Comment 2 dave 2006-09-07 22:56:14 UTC
Subject: Re:  FAIL: gcc.dg/nrv3.c scan-tree-dump-times return slot optimization 2

> I see this failing on hppa64 as well.

Same here.  When I filed the report, I thought I had seen a codesourcery
build where the test didn't fail.

Dave
Comment 3 Andrew Pinski 2006-09-09 05:50:43 UTC
Confirmed, the size of the struct is too small to cause it to be returned by reference.

See the patch at 
http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00051.html
for a fix.
Comment 4 Andrew Pinski 2006-09-11 18:56:43 UTC
http://gcc.gnu.org/ml/gcc-cvs/2006-09/msg00240.html