This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: linker question: rtti/exception functions


Kai Ruottu wrote:
> 
> ------------------------ clip ---------------------------------------
> # i386-elf embedded configuration target with soft-float.
> # by Kai Ruottu
> 
> FPBIT = fp-bit.c
> DPBIT = dp-bit.c
> 
> LIB2FUNCS_EXTRA = xfgnulib.c
> 
> dp-bit.c: $(srcdir)/config/fp-bit.c
>         echo '#define FLOAT_BIT_ORDER_MISMATCH' > dp-bit.c
>         cat $(srcdir)/config/fp-bit.c >> dp-bit.c
> 
> fp-bit.c: $(srcdir)/config/fp-bit.c
>         echo '#define FLOAT' > fp-bit.c
>         echo '#define FLOAT_BIT_ORDER_MISMATCH' >> fp-bit.c
>         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
> 
> MULTILIB_OPTIONS    = m486 mpentium msoft-float fno-exceptions
> MULTILIB_DIRNAMES   = 486 soft-fl no-exc

 Oops the dirname tied to the 'mpentium' was missing ! Censored
by my subconscious mind perhaps... And the 'm486' and 'mpentium'
are mutually exclusive...  Originally I had only the soft-float
variation here. But anyhow :

 MULTILIB_OPTIONS    = m486/mpentium msoft-float fno-exceptions
 MULTILIB_DIRNAMES   = 486 penthouse soft-fl no-exc
 MULTILIB_MATCHES    = mpentium=m586 m80387=mhard-float 
 MULTILIB_EXCEPTIONS = mpentium/msoft-float

or something could be better... If the dirname for housing the
stuff for 'mpentium' is too coarse, one has the freedom to change
it to be anything else, just as the names for the other subdirs...

 These subdirs with their associated compile-switches should then
appear:

	486
	486/no-exc
	486/soft-fl
	486/soft-fl/no-exc
	penthouse
	penthouse/no-exc
	no-exc
	soft-fl
	soft-fl/no-exc

Cheers, Kai


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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