public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/19334] New: ISHFT has the wrong type for constant values
@ 2005-01-08 20:05 pinskia at gcc dot gnu dot org
  2005-01-08 20:07 ` [Bug fortran/19334] " pinskia at gcc dot gnu dot org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-08 20:05 UTC (permalink / raw)
  To: gcc-bugs

integer*1 k, k2, k3, ka
      call c_i1(ISHFT(k,-BIT_SIZE(k)))
      end
      subroutine c_i1(i)
      integer*1 i
      end

Compile this at -O1 on ppc, we recieve an error message:
/usr/bin/ld: f90-intrinsic-bit.o 8 byte literal section (__TEXT,__literal8) size is not a multiple of 8 bytes
collect2: ld returned 1 exit status

If we look into the .s file, we have:
        .literal8
LC0:
        .byte   0

But that means the even though the type of the constant decl is of size one, the type of the value which 
is stored there is of size 8 which is just wrong.

I think this worked before but I could be wrong.

-- 
           Summary: ISHFT has the wrong type for constant values
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-darwin


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


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

end of thread, other threads:[~2005-01-13  0:48 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-08 20:05 [Bug fortran/19334] New: ISHFT has the wrong type for constant values pinskia at gcc dot gnu dot org
2005-01-08 20:07 ` [Bug fortran/19334] " pinskia at gcc dot gnu dot org
2005-01-08 20:33 ` pinskia at gcc dot gnu dot org
2005-01-08 20:33 ` pinskia at gcc dot gnu dot org
2005-01-08 20:47 ` tobi at gcc dot gnu dot org
2005-01-09  2:16 ` pinskia at gcc dot gnu dot org
2005-01-09 11:57 ` tobi at gcc dot gnu dot org
2005-01-09 12:29 ` tobi at gcc dot gnu dot org
2005-01-09 12:30 ` tobi at gcc dot gnu dot org
2005-01-09 15:29 ` pinskia at gcc dot gnu dot org
2005-01-09 15:36 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-01-09 15:47 ` [Bug target/19334] " pinskia at gcc dot gnu dot org
2005-01-09 16:51 ` coudert at clipper dot ens dot fr
2005-01-09 19:21 ` [Bug target/19334] darwin backend places some CONST_DECLs in the wrong section pinskia at gcc dot gnu dot org
2005-01-09 19:28 ` tobi at gcc dot gnu dot org
2005-01-09 19:31 ` pinskia at gcc dot gnu dot org
2005-01-09 20:07 ` pinskia at gcc dot gnu dot org
2005-01-13  0:47 ` pinskia at gcc dot gnu dot org
2005-01-13  0:48 ` cvs-commit 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).