This is the mail archive of the gcc-patches@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] |
ffi.h automatically defines @TARGET@. You would need to define a new target, as it is done for X86_WIN32, and then turn:
#ifndef X86_WIN32 -> #ifdef X86 #ifdef X86_WIN32 -> #ifdef X86_WIN32 #if defined X86_WIN32 || defined __APPLE__ -> #ifndef X86 #ifdef __APPLE__ -> #ifdef X86_DARWIN
would keep __APPLE__ because it is not defining the ABI, but the characteristics of the system assembler. It may be nice to change with a preprocessor macro though, like this:
Also, WRT to the sysv.S changes, what happens if a program was declaring a function to return char or short (excuse the possibly dumb question)? Thanks for all your work!
Cheers, Sandro
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |