public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/25714]  New: concat of strings create an extra temporary variable
@ 2006-01-08  3:12 pinskia at gcc dot gnu dot org
  2006-01-08  3:12 ` [Bug fortran/25714] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-08  3:12 UTC (permalink / raw)
  To: gcc-bugs

Take:
character(2) :: c
character(1) :: a
character(1) :: b
c = a//b
end

----
We get:
  _gfortran_concat_string (2, str.1, 1, &a, 1, &b);
  _gfortran_copy_string (2, &c, 2, str.1);


We should be able to get:
  _gfortran_concat_string (2, &c, 1, &a, 1, &b);

Instead and get rid of the tempory variable of str.1.


-- 
           Summary: concat of strings create an extra temporary variable
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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



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

end of thread, other threads:[~2021-06-29  2:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-25714-4@http.gcc.gnu.org/bugzilla/>
2010-12-26  0:42 ` [Bug fortran/25714] concat of strings create an extra temporary variable tkoenig at gcc dot gnu.org
2014-12-07 10:24 ` dominiq at lps dot ens.fr
2015-05-16  6:07 ` tkoenig at gcc dot gnu.org
2021-06-29  2:52 ` tobi at gcc dot gnu.org
2006-01-08  3:12 [Bug fortran/25714] New: " pinskia at gcc dot gnu dot org
2006-01-08  3:12 ` [Bug fortran/25714] " pinskia at gcc dot gnu dot org
2006-01-29 21:06 ` pinskia at gcc dot gnu dot org
2007-02-07  0:21 ` fxcoudert at gcc dot gnu dot org
2007-03-03 12:14 ` fxcoudert 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).