This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Re: ARM Thumb


"Lewin A.R.W. Edwards" wrote:
> 
> >a fixed version. I think there was at least one, who uses the normal
> >arm-elf-gcc (or arm-coff-gcc) with a compiler switch for generating
> >thumb code. Are there any experiences? Whats the best solution?
> 
> You can't build eCos in thumb mode. There is a bug in gcc at the moment
> which makes the build operation fail. (Still there with CVS sources of Monday).

[ Jifl goes to the gcc-patches archive and checks... ]

You'll be displeased to know that the patch only got checked in on Tuesday
:-). Here's what it was BTW.

2001-04-24  Nick Clifton  <nickc@cambridge.redhat.com>

        * dwarf2out.c (mem_loc_descriptor): If a SYMBOL_REF is in the
        constant pool, use the pool's SYMBOL_REF instead.

Index: gcc/dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.263
diff -p -r1.263 dwarf2out.c
*** dwarf2out.c 2001/04/12 01:44:21     1.263
--- dwarf2out.c 2001/04/20 08:29:03
*************** mem_loc_descriptor (rtl, mode)
*** 7117,7122 ****
--- 7117,7128 ----
         pool.  */
      case CONST:
      case SYMBOL_REF:
+       /* Alternatively, the symbol in the constant pool can be referenced
+        by a different symbol.  */
+       if (GET_CODE (rtl) == SYMBOL_REF
+          && CONSTANT_POOL_ADDRESS_P (rtl))
+          rtl = get_pool_constant (rtl);
+ 
        mem_loc_result = new_loc_descr (DW_OP_addr, 0, 0);
        mem_loc_result->dw_loc_oprnd1.val_class = dw_val_class_addr;
        mem_loc_result->dw_loc_oprnd1.v.val_addr = save_rtx (rtl);


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]