public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/40015] New: [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90
@ 2009-05-04 3:41 hjl dot tools at gmail dot com
2009-05-04 5:55 ` [Bug middle-end/40015] " hp at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-05-04 3:41 UTC (permalink / raw)
To: gcc-bugs
Revision 147083:
http://gcc.gnu.org/ml/gcc-cvs/2009-05/msg00057.html
triggered:
FAIL: gfortran.dg/array_memcpy_4.f90 -O scan-tree-dump-times original "d = "
1
--
Summary: [4.5.0 Regression] Revision 147083 failed
gfortran.dg/array_memcpy_4.f90
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40015
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/40015] [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90
2009-05-04 3:41 [Bug middle-end/40015] New: [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90 hjl dot tools at gmail dot com
@ 2009-05-04 5:55 ` hp at gcc dot gnu dot org
2009-05-04 6:30 ` dominiq at lps dot ens dot fr
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: hp at gcc dot gnu dot org @ 2009-05-04 5:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hp at gcc dot gnu dot org 2009-05-04 05:54 -------
Seen for cris-elf too...
--
hp at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hp at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-05-04 05:54:58
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40015
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/40015] [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90
2009-05-04 3:41 [Bug middle-end/40015] New: [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90 hjl dot tools at gmail dot com
2009-05-04 5:55 ` [Bug middle-end/40015] " hp at gcc dot gnu dot org
@ 2009-05-04 6:30 ` dominiq at lps dot ens dot fr
2009-05-04 6:32 ` dominiq at lps dot ens dot fr
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-05-04 6:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from dominiq at lps dot ens dot fr 2009-05-04 06:30 -------
Confirmed on i686-apple-darwin9, array_memcpy_4.f90.003t.original is
MAIN__ ()
{
struct t d[5];
struct t s[5];
static integer(kind=4) options.0[8] = {68, 255, 0, 0, 0, 1, 0, 1};
_gfortran_set_options (8, (void *) &options.0);
(void) __builtin_memcpy ((void *) &d, (void *) &s, 60);
}
and does not depend on the optimization level.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40015
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/40015] [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90
2009-05-04 3:41 [Bug middle-end/40015] New: [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90 hjl dot tools at gmail dot com
2009-05-04 5:55 ` [Bug middle-end/40015] " hp at gcc dot gnu dot org
2009-05-04 6:30 ` dominiq at lps dot ens dot fr
@ 2009-05-04 6:32 ` dominiq at lps dot ens dot fr
2009-05-04 8:59 ` dominiq at lps dot ens dot fr
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-05-04 6:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dominiq at lps dot ens dot fr 2009-05-04 06:32 -------
At revision 147065 I get:
MAIN__ ()
{
struct t d[5];
struct t s[5];
static integer(kind=4) options.0[8] = {68, 255, 0, 0, 0, 1, 0, 1};
_gfortran_set_options (8, (void *) &options.0);
d = VIEW_CONVERT_EXPR<struct t[5]>(s);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40015
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/40015] [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90
2009-05-04 3:41 [Bug middle-end/40015] New: [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90 hjl dot tools at gmail dot com
` (2 preceding siblings ...)
2009-05-04 6:32 ` dominiq at lps dot ens dot fr
@ 2009-05-04 8:59 ` dominiq at lps dot ens dot fr
2009-05-04 9:01 ` rguenther at suse dot de
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: dominiq at lps dot ens dot fr @ 2009-05-04 8:59 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dominiq at lps dot ens dot fr 2009-05-04 08:59 -------
This test has been introduced by the patch in
http://gcc.gnu.org/ml/fortran/2007-01/msg00425.html.
The tests gfortran.dg/array_memcpy_[1-3].f90 use
! { dg-final { scan-tree-dump-times "memcpy" * "original" } }
So a simple fix would be to replace
! { dg-final { scan-tree-dump-times "d = " 1 "original" } }
with
! { dg-final { scan-tree-dump-times "memcpy" 1 "original" } }
but I don't understand why array_memcpy_4.f90 used to give a different
construct and this change could mask a more serious problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40015
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/40015] [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90
2009-05-04 3:41 [Bug middle-end/40015] New: [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90 hjl dot tools at gmail dot com
` (3 preceding siblings ...)
2009-05-04 8:59 ` dominiq at lps dot ens dot fr
@ 2009-05-04 9:01 ` rguenther at suse dot de
2009-05-04 9:26 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenther at suse dot de @ 2009-05-04 9:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenther at suse dot de 2009-05-04 09:01 -------
Subject: Re: [4.5.0 Regression] Revision 147083 failed
gfortran.dg/array_memcpy_4.f90
On Mon, 4 May 2009, dominiq at lps dot ens dot fr wrote:
> ------- Comment #4 from dominiq at lps dot ens dot fr 2009-05-04 08:59 -------
> This test has been introduced by the patch in
> http://gcc.gnu.org/ml/fortran/2007-01/msg00425.html.
> The tests gfortran.dg/array_memcpy_[1-3].f90 use
>
> ! { dg-final { scan-tree-dump-times "memcpy" * "original" } }
>
> So a simple fix would be to replace
>
> ! { dg-final { scan-tree-dump-times "d = " 1 "original" } }
>
> with
>
> ! { dg-final { scan-tree-dump-times "memcpy" 1 "original" } }
>
> but I don't understand why array_memcpy_4.f90 used to give a different
> construct and this change could mask a more serious problem.
I will investigate - we really should get the memcpy removed.
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40015
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/40015] [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90
2009-05-04 3:41 [Bug middle-end/40015] New: [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90 hjl dot tools at gmail dot com
` (4 preceding siblings ...)
2009-05-04 9:01 ` rguenther at suse dot de
@ 2009-05-04 9:26 ` rguenth at gcc dot gnu dot org
2009-05-04 11:02 ` rguenth at gcc dot gnu dot org
2009-05-04 12:43 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-04 9:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2009-05-04 09:25 -------
I have a patch.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2009-05-04 05:54:58 |2009-05-04 09:25:57
date| |
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40015
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/40015] [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90
2009-05-04 3:41 [Bug middle-end/40015] New: [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90 hjl dot tools at gmail dot com
` (5 preceding siblings ...)
2009-05-04 9:26 ` rguenth at gcc dot gnu dot org
@ 2009-05-04 11:02 ` rguenth at gcc dot gnu dot org
2009-05-04 12:43 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-04 11:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2009-05-04 11:02 -------
Subject: Bug 40015
Author: rguenth
Date: Mon May 4 11:01:59 2009
New Revision: 147094
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147094
Log:
2009-05-04 Richard Guenther <rguenther@suse.de>
PR middle-end/40015
* builtins.c (fold_builtin_memory_op): Do not decay to element
type if the size matches the whole array.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/builtins.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40015
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/40015] [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90
2009-05-04 3:41 [Bug middle-end/40015] New: [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90 hjl dot tools at gmail dot com
` (6 preceding siblings ...)
2009-05-04 11:02 ` rguenth at gcc dot gnu dot org
@ 2009-05-04 12:43 ` rguenth at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-04 12:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from rguenth at gcc dot gnu dot org 2009-05-04 12:43 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40015
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-05-04 12:43 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-04 3:41 [Bug middle-end/40015] New: [4.5.0 Regression] Revision 147083 failed gfortran.dg/array_memcpy_4.f90 hjl dot tools at gmail dot com
2009-05-04 5:55 ` [Bug middle-end/40015] " hp at gcc dot gnu dot org
2009-05-04 6:30 ` dominiq at lps dot ens dot fr
2009-05-04 6:32 ` dominiq at lps dot ens dot fr
2009-05-04 8:59 ` dominiq at lps dot ens dot fr
2009-05-04 9:01 ` rguenther at suse dot de
2009-05-04 9:26 ` rguenth at gcc dot gnu dot org
2009-05-04 11:02 ` rguenth at gcc dot gnu dot org
2009-05-04 12:43 ` 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).