From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7098 invoked by alias); 22 Jan 2003 08:36:00 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7078 invoked by uid 71); 22 Jan 2003 08:36:00 -0000 Resent-Date: 22 Jan 2003 08:36:00 -0000 Resent-Message-ID: <20030122083600.7076.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, theller@python.org Received: (qmail 5120 invoked by uid 48); 22 Jan 2003 08:28:09 -0000 Message-Id: <20030122082809.5118.qmail@sources.redhat.com> Date: Wed, 22 Jan 2003 08:36:00 -0000 From: theller@python.org Reply-To: theller@python.org To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: other/9398: Bug in ffi.h.in header file X-SW-Source: 2003-01/txt/msg01185.txt.bz2 List-Id: >Number: 9398 >Category: other >Synopsis: Bug in ffi.h.in header file >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jan 22 08:36:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: theller@python.org >Release: Current CVS (2003-01-22) >Organization: >Environment: >Description: There's a bug in gcc/libffi/include/ffi.h.in. ffi_type_ulong and ffi_type_slong over redefined to wrong values here (they are defined before when SIZEOF_LONG == 4): #if SIZEOF_LONG_LONG == 8 #define UINT64 unsigned long long #define SINT64 long long #define ffi_type_ulong ffi_type_uint64 #define ffi_type_slong ffi_type_sint64 #endif >How-To-Repeat: >Fix: IMO it should read instead: #if SIZEOF_LONG_LONG == 8 #define UINT64 unsigned long long #define SINT64 long long #define ffi_type_ulonglong ffi_type_uint64 #define ffi_type_slonglong ffi_type_sint64 #endif >Release-Note: >Audit-Trail: >Unformatted: