This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
other/9398: Bug in ffi.h.in header file
- From: theller at python dot org
- To: gcc-gnats at gcc dot gnu dot org
- Date: 22 Jan 2003 08:28:09 -0000
- Subject: other/9398: Bug in ffi.h.in header file
- Reply-to: theller at python dot org
>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: