public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45309]  New: [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove
@ 2010-08-17 14:00 burnus at gcc dot gnu dot org
  2010-08-17 14:14 ` [Bug fortran/45309] " domob at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-08-17 14:00 UTC (permalink / raw)
  To: gcc-bugs

The test case for PR 40628 has:

! { dg-final { scan-tree-dump-times "memmove" 2 "original" } }

However, the original dump has:

__builtin_memmove ((void *) &a, (void *) pstr.0, 3);
__builtin_memmove ((void *) &a, (void *) pstr.0, (integer(kind=8)) D.1558);
__builtin_memmove ((void *) &c, (void *) pstr.2, 4);
__builtin_memmove ((void *) &c, (void *) pstr.2, (integer(kind=8)) D.1566);

For some reasons, regtestings FAILs for me but not for Daniel K (who never the
less has 4 memmoves) - also gcc-testresults shows no failures.

Please check whether 4 or 2 memove are correct.


-- 
           Summary: [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4
                    memmove
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45309


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

* [Bug fortran/45309] [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove
  2010-08-17 14:00 [Bug fortran/45309] New: [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove burnus at gcc dot gnu dot org
@ 2010-08-17 14:14 ` domob at gcc dot gnu dot org
  2010-08-17 16:44 ` mikael at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: domob at gcc dot gnu dot org @ 2010-08-17 14:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from domob at gcc dot gnu dot org  2010-08-17 14:14 -------
Confirmed (from my point of view)


-- 

domob at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |domob at gcc dot gnu dot org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-08-17 14:14:32
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45309


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

* [Bug fortran/45309] [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove
  2010-08-17 14:00 [Bug fortran/45309] New: [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove burnus at gcc dot gnu dot org
  2010-08-17 14:14 ` [Bug fortran/45309] " domob at gcc dot gnu dot org
@ 2010-08-17 16:44 ` mikael at gcc dot gnu dot org
  2010-08-17 17:07 ` burnus at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mikael at gcc dot gnu dot org @ 2010-08-17 16:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mikael at gcc dot gnu dot org  2010-08-17 16:44 -------
I'm somewhat out of date (revision 163221) and I only see 2 memmoves.
I don't see any string_trim either. 
Note that the -O option changes the original tree dump. 
I thought it only impacted later dumps.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45309


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

* [Bug fortran/45309] [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove
  2010-08-17 14:00 [Bug fortran/45309] New: [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove burnus at gcc dot gnu dot org
  2010-08-17 14:14 ` [Bug fortran/45309] " domob at gcc dot gnu dot org
  2010-08-17 16:44 ` mikael at gcc dot gnu dot org
@ 2010-08-17 17:07 ` burnus at gcc dot gnu dot org
  2010-08-22 17:10 ` mikael at gcc dot gnu dot org
  2010-08-22 19:45 ` mikael at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-08-17 17:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from burnus at gcc dot gnu dot org  2010-08-17 17:06 -------
(In reply to comment #2)
> Note that the -O option changes the original tree dump. 
> I thought it only impacted later dumps.

OK, with -O I also only get

(MEM[(c_char * {ref-all})&b] = MEM[(c_char * {ref-all})"abcd"];, (void *) &b;);
__builtin_memmove ((void *) &a, (void *) &b, 3);
__builtin_memmove ((void *) &c, (void *) &a, 3);

Though, it does not explain the failures which I saw:

FAIL: gfortran.dg/trim_optimize_1.f90  -O0  scan-tree-dump-times original
"memmove" 2
FAIL: gfortran.dg/trim_optimize_1.f90  -O0  scan-tree-dump-times original
"string_trim" 0

(Ditto for "-O1" etc., but the "-O" in dg-options overrides the -O... options
from dg.exp thus one runs the program 8 times with the same options.)

However, currently,
  make check-gfortran RUNTESTFLAGS='dg.exp=trim_optimize_1.f90
shows no failures. Thus, I close it as INVALID. Hopefully, it will continue to
work.

Mikael, thanks for the analysis!


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45309


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

* [Bug fortran/45309] [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove
  2010-08-17 14:00 [Bug fortran/45309] New: [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove burnus at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2010-08-17 17:07 ` burnus at gcc dot gnu dot org
@ 2010-08-22 17:10 ` mikael at gcc dot gnu dot org
  2010-08-22 19:45 ` mikael at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mikael at gcc dot gnu dot org @ 2010-08-22 17:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mikael at gcc dot gnu dot org  2010-08-22 17:10 -------
I'm seeing the failure now at revision 163459.


-- 

mikael at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45309


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

* [Bug fortran/45309] [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove
  2010-08-17 14:00 [Bug fortran/45309] New: [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove burnus at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2010-08-22 17:10 ` mikael at gcc dot gnu dot org
@ 2010-08-22 19:45 ` mikael at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: mikael at gcc dot gnu dot org @ 2010-08-22 19:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mikael at gcc dot gnu dot org  2010-08-22 19:45 -------
The patch for PR45380 fixes this. 

*** This bug has been marked as a duplicate of 45380 ***


-- 

mikael at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45309


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

end of thread, other threads:[~2010-08-22 19:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17 14:00 [Bug fortran/45309] New: [4.6 Regression] gfortran.dg/trim_optimize_1.f90 has 4 memmove burnus at gcc dot gnu dot org
2010-08-17 14:14 ` [Bug fortran/45309] " domob at gcc dot gnu dot org
2010-08-17 16:44 ` mikael at gcc dot gnu dot org
2010-08-17 17:07 ` burnus at gcc dot gnu dot org
2010-08-22 17:10 ` mikael at gcc dot gnu dot org
2010-08-22 19:45 ` mikael 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).