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]

Re: [PATCH] quick patch for PR31937


Patrick Olinet writes:
 > Here is a quick patch related to PR31937. The bug prevents PowerPC
 > CPUs without FPU (such as PPC405EP) to use libffi, even if no
 > double/float are used. It crashes with an "illegal instruction"
 > message.
 > 
 > This bug also means that it crashes when you load & run java bytecode
 > from a native code binary compiled with gcj. I guess libffi is used in
 > this case to call java methods of the bytecode.
 > 
 > Notice that this quick patch will only allow you to use libffi (and
 > hence load & run java bytecode) without float/double numbers. But it
 > will not prevent a crash if floats or doubles are used. A deeper
 > modification, with probably calls to the soft float layer, would
 > probably be needed for this.

If you run "gcc -Wp,-dD", does it come up with any macro like SOFT_FLOAT?

Andrew.


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