There are no builtin defines that tell what sdata mode is active.
For calling convention only _CALL_SYSV is defined even when EABI is in fact
active.
I'm going to provide a patch that adds more builtin defines.
--
Summary: No builtin defines to tell SDATA mode.
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: osv at javad dot ru
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-unknown-eabi
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22271