public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* ARM/Thumb tool chain
@ 2000-07-28  2:31 Giuliano Procida
  2000-07-28  2:41 ` Alexandre Oliva
  2000-07-28 22:44 ` Aldy Hernandez
  0 siblings, 2 replies; 7+ messages in thread
From: Giuliano Procida @ 2000-07-28  2:31 UTC (permalink / raw)
  To: 'gcc@gcc.gnu.org'

We are trying to use GNU tools for an embedded device and currently have a
MITEL evaluation board.

The target "thumb-elf" is no longer seems to be supported (we are supposed
to use -mthumb instead). However, libgcc is produced in only an ARM version
(I believe the m68k target produces multiple versions).

We would like to have two complete sets of ARM and Thumb tools. How should
we go about this?

We are working with recent egcs snapshots.

Thanks,
Giuliano.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ARM/Thumb tool chain
  2000-07-28  2:31 ARM/Thumb tool chain Giuliano Procida
@ 2000-07-28  2:41 ` Alexandre Oliva
  2000-07-28 22:44 ` Aldy Hernandez
  1 sibling, 0 replies; 7+ messages in thread
From: Alexandre Oliva @ 2000-07-28  2:41 UTC (permalink / raw)
  To: Giuliano Procida; +Cc: 'gcc@gcc.gnu.org'

On Jul 28, 2000, Giuliano Procida <Giuliano.Procida@red-m.com> wrote:

> The target "thumb-elf" is no longer seems to be supported (we are supposed
> to use -mthumb instead). However, libgcc is produced in only an ARM version

Did you --disable-multilibs?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ARM/Thumb tool chain
  2000-07-28  2:31 ARM/Thumb tool chain Giuliano Procida
  2000-07-28  2:41 ` Alexandre Oliva
@ 2000-07-28 22:44 ` Aldy Hernandez
  1 sibling, 0 replies; 7+ messages in thread
From: Aldy Hernandez @ 2000-07-28 22:44 UTC (permalink / raw)
  To: Giuliano Procida; +Cc: 'gcc@gcc.gnu.org'

>>>>> "Giuliano" == Giuliano Procida <Giuliano.Procida@red-m.com> writes:

 > We are trying to use GNU tools for an embedded device and currently have a
 > MITEL evaluation board.

 > The target "thumb-elf" is no longer seems to be supported (we are supposed
 > to use -mthumb instead). However, libgcc is produced in only an ARM version
 > (I believe the m68k target produces multiple versions).

 > We would like to have two complete sets of ARM and Thumb tools. How should
 > we go about this?

IIRC the egcs sources have the MULTILIBs section in
config/arm/t-arm-elf commented out.  You might want to uncomment out
all the MULTILIB_OPTIONS/DIRNAMES/EXCEPTIONS/MATCHES lines in
t-arm-elf.

Only -mbig-endian and -mlittle-endian are enabled be default.

I assume the rest of them are commented out because they take a
freaking long time to build.

[I just finished doing a full build yesterday-- and I watched a few
movies before it was even half-way done :)]

Aldy

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ARM/Thumb tool chain
@ 2000-07-28 10:47 Nick Clifton
  0 siblings, 0 replies; 7+ messages in thread
From: Nick Clifton @ 2000-07-28 10:47 UTC (permalink / raw)
  To: Giuliano.Procida; +Cc: gcc

Hi Giuliano,

: > It seems that all multilib options are commented out in
: > gcc/config/arm/t-arm-elf.
: 
: Does anyone know why?

Good question.

There is no compelling reason to comment out the multilibs.  It saves
build and test time and reduces disk space requirements, but on the
other hand it gives rise to problems like this.

Note - the absence of a Thumb targeted libgcc.a should not be a great
problem since the linker will automatically generate calling
conversion stubs to switch between ARM and Thumb mode.

In order to generate a set of Thumb multilibs apply the patch below
and then rebuild everything.

Cheers
	Nick


Index: gcc/config/arm/t-arm-elf
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/arm/t-arm-elf,v
retrieving revision 1.11
diff -p -r1.11 t-arm-elf
*** t-arm-elf	2000/04/08 14:29:52	1.11
--- t-arm-elf	2000/07/28 17:46:11
*************** dp-bit.c: $(srcdir)/config/fp-bit.c
*** 21,26 ****
--- 21,31 ----
  	echo '#endif' >> dp-bit.c
  	cat $(srcdir)/config/fp-bit.c >> dp-bit.c
  
+ 	
+ MULTILIB_OPTIONS     = marm/mthumb
+ MULTILIB_DIRNAMES    = arm thumb
+ MULTILIB_EXCEPTIONS  = 
+ 	
  # MULTILIB_OPTIONS     = mlittle-endian/mbig-endian
  # MULTILIB_DIRNAMES    = le be
  # MULTILIB_EXCEPTIONS  = 
*************** dp-bit.c: $(srcdir)/config/fp-bit.c
*** 62,73 ****
  # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm600
  # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm610
  # MULTILIB_MATCHES    += mcpu?arm7=mcpu?arm620
- #  
- # EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
- # LIBGCC               = stmp-multilib
- # INSTALL_LIBGCC       = install-multilib
  
- MULTILIB_MATCHES     = mbig-endian=mbe mlittle-endian=mle
  EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o
  
  # If EXTRA_MULTILIB_PARTS is not defined above then define EXTRA_PARTS here
--- 67,73 ----

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ARM/Thumb tool chain
@ 2000-07-28  6:46 Giuliano Procida
  0 siblings, 0 replies; 7+ messages in thread
From: Giuliano Procida @ 2000-07-28  6:46 UTC (permalink / raw)
  To: 'gcc@gcc.gnu.org'

Alexandre Oliva <aoliva@redhat.com> wrote:

> It seems that all multilib options are commented out in
> gcc/config/arm/t-arm-elf.

Does anyone know why?

Thanks,
Giuliano.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: ARM/Thumb tool chain
@ 2000-07-28  6:04 Giuliano Procida
  2000-07-28  6:02 ` Alexandre Oliva
  0 siblings, 1 reply; 7+ messages in thread
From: Giuliano Procida @ 2000-07-28  6:04 UTC (permalink / raw)
  To: 'Alexandre Oliva'; +Cc: 'gcc@gcc.gnu.org'

Alexandre Oliva wrote:

> Did you --disable-multilibs?

No, but I didn't enable them either. How many different combinations of
libraries will I get? Is there any control over this? The right option is
"--enable-multilib", right?

soft-float/nfp
thumb/ARM
ARMv3/ARMv4 (?)

Would suggest at least 8!

Thanks!
Giuliano.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: ARM/Thumb tool chain
  2000-07-28  6:04 Giuliano Procida
@ 2000-07-28  6:02 ` Alexandre Oliva
  0 siblings, 0 replies; 7+ messages in thread
From: Alexandre Oliva @ 2000-07-28  6:02 UTC (permalink / raw)
  To: Giuliano Procida; +Cc: 'gcc@gcc.gnu.org'

On Jul 28, 2000, Giuliano Procida <Giuliano.Procida@red-m.com> wrote:

> Alexandre Oliva wrote:
>> Did you --disable-multilibs?

> No, but I didn't enable them either.

Then you're supposed to get them.

> How many different combinations of libraries will I get?

Probably lots of them :-)

> Is there any control over this? The right option is
> "--enable-multilib", right?

They should be enabled by default.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-07-28 22:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-28  2:31 ARM/Thumb tool chain Giuliano Procida
2000-07-28  2:41 ` Alexandre Oliva
2000-07-28 22:44 ` Aldy Hernandez
2000-07-28  6:04 Giuliano Procida
2000-07-28  6:02 ` Alexandre Oliva
2000-07-28  6:46 Giuliano Procida
2000-07-28 10:47 Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).