public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Thumb tools
@ 2001-05-04  9:13 Jonathan Larmour
  2001-05-04  9:17 ` Lewin A.R.W. Edwards
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Larmour @ 2001-05-04  9:13 UTC (permalink / raw)
  To: eCos discussion

For those who've been wanting to build for ARM Thumb, I've got sensible
results from the gcc 3 branch by applying just the attached patch, which
should be going in shortly I hope.

You will also need to enable thumb interworking multilibs by editting
gcc/config/arm/t-arm-elf and uncommenting the following two lines:

MULTILIB_OPTIONS    += mno-thumb-interwork/mthumb-interwork
MULTILIB_DIRNAMES   += normal interwork

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Index: gcc/config/arm/arm.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.h,v
retrieving revision 1.98.4.1
diff -u -5 -p -r1.98.4.1 arm.h
--- arm.h	2001/04/08 19:59:02	1.98.4.1
+++ arm.h	2001/05/04 16:13:25
@@ -1077,11 +1077,11 @@ enum reg_class
    or could index an array.  */
 #define REGNO_REG_CLASS(REGNO)  arm_regno_class (REGNO)
 
 /* The class value for index registers, and the one for base regs.  */
 #define INDEX_REG_CLASS  (TARGET_THUMB ? LO_REGS : GENERAL_REGS)
-#define BASE_REG_CLASS   (TARGET_THUMB ? BASE_REGS : GENERAL_REGS)
+#define BASE_REG_CLASS   (TARGET_THUMB ? LO_REGS : GENERAL_REGS)
 
 /* When SMALL_REGISTER_CLASSES is nonzero, the compiler allows
    registers explicitly used in the rtl to be used as spill registers
    but prevents the compiler from extending the lifetime of these
    registers. */

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

* Re: [ECOS] Thumb tools
  2001-05-04  9:13 [ECOS] Thumb tools Jonathan Larmour
@ 2001-05-04  9:17 ` Lewin A.R.W. Edwards
  2001-05-07  1:58   ` Rafael Rodríguez Velilla
  0 siblings, 1 reply; 4+ messages in thread
From: Lewin A.R.W. Edwards @ 2001-05-04  9:17 UTC (permalink / raw)
  To: Jonathan Larmour, eCos discussion

>For those who've been wanting to build for ARM Thumb, I've got sensible
>results from the gcc 3 branch by applying just the attached patch, which
>should be going in shortly I hope.

Yummy! Thanks, Jonathan :)

=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"... a man who is endowed with real qualities of leadership will be tempted 
to refrain from taking part in political life; because [...] the situation 
does not call for a man who has a capacity for constructive statesmanship 
but rather for a man who is capable of bargaining for the favour of the 
majority. Thus the situation will appeal to small minds and will attract 
them accordingly."

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

* Re: [ECOS] Thumb tools
  2001-05-04  9:17 ` Lewin A.R.W. Edwards
@ 2001-05-07  1:58   ` Rafael Rodríguez Velilla
  2001-05-08  6:23     ` Jonathan Larmour
  0 siblings, 1 reply; 4+ messages in thread
From: Rafael Rodríguez Velilla @ 2001-05-07  1:58 UTC (permalink / raw)
  To: ecos

> >For those who've been wanting to build for ARM Thumb, I've got sensible
> >results from the gcc 3 branch by applying just the attached patch, which
> >should be going in shortly I hope.
>
> Yummy! Thanks, Jonathan :)

  If this works I'll be quite relieved... Iwas running into  problems. Thank
you.

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

* Re: [ECOS] Thumb tools
  2001-05-07  1:58   ` Rafael Rodríguez Velilla
@ 2001-05-08  6:23     ` Jonathan Larmour
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Larmour @ 2001-05-08  6:23 UTC (permalink / raw)
  To: Rafael Rodríguez Velilla; +Cc: ecos

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 679 bytes --]

Rafael Rodríguez Velilla wrote:
> 
> > >For those who've been wanting to build for ARM Thumb, I've got sensible
> > >results from the gcc 3 branch by applying just the attached patch, which
> > >should be going in shortly I hope.
> >
> > Yummy! Thanks, Jonathan :)
> 
>   If this works I'll be quite relieved... Iwas running into  problems. 

Be warned - I only ran a few tests like tm_basic. That doesn't guarantee
it's 100%. That's one of the reasons why many people buy tools from certain
unnamed companies :-). 

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

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

end of thread, other threads:[~2001-05-08  6:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-04  9:13 [ECOS] Thumb tools Jonathan Larmour
2001-05-04  9:17 ` Lewin A.R.W. Edwards
2001-05-07  1:58   ` Rafael Rodríguez Velilla
2001-05-08  6:23     ` Jonathan Larmour

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).