From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32135 invoked by alias); 8 Jan 2005 20:05:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 32121 invoked by uid 48); 8 Jan 2005 20:05:10 -0000 Date: Sat, 08 Jan 2005 20:05:00 -0000 From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20050108200509.19334.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/19334] New: ISHFT has the wrong type for constant values X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg01011.txt.bz2 List-Id: 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