[llvm-commits] [llvm-gcc-4.2] r48440 - in /llvm-gcc-4.2/trunk/gcc: config/rs6000/llvm-rs6000.cpp config/rs6000/rs6000.h llvm-abi.h

Duncan Sands baldrick at free.fr
Mon Mar 17 00:18:30 PDT 2008


Hi Dale,

> -               !aggregate_value_p(type, current_function_decl) &&
> -               // FIXME: this is a hack around returning 'complex double' by-val
> -               // which returns in r3/r4/r5/r6 on PowerPC.
> -               TREE_INT_CST_LOW(TYPE_SIZE_UNIT(type)) <= 8) {
> +               !aggregate_value_p(type, current_function_decl)) {

while you are there, how about removing this bogus use of current_function_decl?
After all, when analyzing a call it is not the current function you want but the
callee...

Thanks,

Duncan.



More information about the llvm-commits mailing list