This is the mail archive of the gcc@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]

Multilib spec


Fellows,

Sorry bothering you.

I've got a question about multilib specifications.

I've got a couple of targets. Some of them support hardware multiplier, 
some of them dont.
I want to make two different libgcc, which will be passed to linker 
depending on a particular arch.



So, I write in t-msp:

MULTILIB_OPTIONS = mhas-hw-mul/mno-hw-mul
MULTILIB_DIRNAMES =  hwmul nohwmul

also, I write in msp.h:

#define CPP_SPEC "\
%{!mmcu*|mmcu=msp430x149:%(cpp_msp430x149)} \
%{mmcu=msp430x149:%(cpp_msp430x149) -D__MSP430_149__ -DMSP430_HAS_HWMUL} \
%{mmcu=msp430x135:%(cpp_msp430x135) -D__MSP430_135__} \
%{mint8:-D__SIZE_TYPE__=long\\ unsigned\\ int -D__PTRDIFF_TYPE__=long 
-D__INT_MAX__=127} \
%{!mint*:-D__SIZE_TYPE__=unsigned\\ int -D__PTRDIFF_TYPE__=int 
-D__INT_MAX__=32767} \
%{posix:-D_POSIX_SOURCE}"


The question is:
How can I define LIBGCC_SPEC and LIB_SPEC to force linker to load either 
libgcc compiled with hwmul or one without?

Thanks in advance,
Dmitry.



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