public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45636]  New: Failed to fold simple Fortran string
@ 2010-09-10 14:48 hjl dot tools at gmail dot com
  2010-09-10 15:12 ` [Bug fortran/45636] " kargl at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-09-10 14:48 UTC (permalink / raw)
  To: gcc-bugs

For this simple Fortran string:

[hjl@gnu-6 pr45634]$ cat pr45634.f90 
      SUBROUTINE RCRDRD (VTYP)
      CHARACTER(4), INTENT(OUT) :: VTYP 
      CHARACTER(1), SAVE :: DBL = "D" 
      VTYP = DBL
      END

GCC generates:

[hjl@gnu-6 pr45634]$ cat pr45634.s 
        .file   "pr45634.f90"
        .text
        .p2align 4,,15
        .globl  rcrdrd_
        .type   rcrdrd_, @function
rcrdrd_:
.LFB0:
        .cfi_startproc
        movzbl  dbl.1557(%rip), %eax
        movw    $8224, 1(%rdi)
        movb    $32, 3(%rdi)
        movb    %al, (%rdi)
        ret
        .cfi_endproc
.LFE0:
        .size   rcrdrd_, .-rcrdrd_
        .section        .rodata
        .type   dbl.1557, @object
        .size   dbl.1557, 1
dbl.1557:
        .ascii  "D"
        .ident  "GCC: (GNU) 4.6.0 20100910 (experimental)"
        .section        .note.GNU-stack,"",@progbits

IFORT generates:

[hjl@gnu-6 pr45634]$ cat icc.s
# -- Machine type EFI2
# mark_description "Intel(R) Fortran Compiler XE for applications running on
Intel(R) 64, Version 12.0.0 Beta Build 20100512";
# mark_description "-O3 -S";
        .file "pr45634.f90"
        .text
..TXTST0:
# -- Begin  rcrdrd_
# mark_begin;
       .align    16,0x90
        .globl rcrdrd_
rcrdrd_:
# parameter 1: %rdi
# parameter 2: %rsi
..B1.1:                         # Preds ..B1.0
..___tag_value_rcrdrd_.1:                                       #1.18
        movl      $538976324, (%rdi)                            #4.7
        ret                                                     #5.7


-- 
           Summary: Failed to fold simple Fortran string
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        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=45636


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

end of thread, other threads:[~2010-11-24  0:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-45636-4@http.gcc.gnu.org/bugzilla/>
2010-09-27 11:07 ` [Bug fortran/45636] Failed to fold simple Fortran string tkoenig at gcc dot gnu.org
2010-10-12 22:01 ` jakub at gcc dot gnu.org
2010-10-16 18:59 ` danglin at gcc dot gnu.org
2010-10-17 15:42 ` dave at hiauly1 dot hia.nrc.ca
2010-10-28 17:54 ` ro at gcc dot gnu.org
2010-11-05 21:13 ` sje at cup dot hp.com
2010-11-07  7:46 ` burnus at gcc dot gnu.org
2010-11-07 19:44 ` dave at hiauly1 dot hia.nrc.ca
2010-11-08 16:08 ` sje at cup dot hp.com
2010-11-23 23:53 ` danglin at gcc dot gnu.org
2010-11-24  1:09 ` danglin at gcc dot gnu.org
2010-09-10 14:48 [Bug fortran/45636] New: " hjl dot tools at gmail dot com
2010-09-10 15:12 ` [Bug fortran/45636] " kargl at gcc dot gnu dot org
2010-09-10 15:20 ` kargl at gcc dot gnu dot org
2010-09-10 15:33 ` hjl dot tools at gmail dot com
2010-09-10 15:34 ` kargl at gcc dot gnu dot org
2010-09-10 15:47 ` jakub 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).