This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

other/9398: Bug in ffi.h.in header file


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]