incompatible_return_small_structs

Warns when returning structures using the R3 and R4 registers.

Syntax
#pragma incompatible_return_small_structs on | off | reset
  
Remarks

This pragma makes CodeWarrior-built object files more compatible with those created using a GNU compiler.

The PowerPC EABI specifies that structures that are up to 8 bytes in size should be in registers R3 and R4 , while larger structures are returned by accessing a hidden argument in R3 . GCC compilers always uses the hidden argument method regardless of size.

The CodeWarrior linker checks to see if you are including objects in your project that have incompatible EABI settings. If you do, a warning message is issued.

Note: Different versions of GCC compilers may fix these incompatibilities, so you should check your version if you will be mixing GCC and CodeWarrior objects.