From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: "Lewin A.R.W. Edwards" Cc: Roman , ecos-discuss Subject: Re: [ECOS] ARM Thumb Date: Thu, 26 Apr 2001 12:23:00 -0000 Message-id: <3AE87590.C5A962B2@redhat.com> References: <4.3.2.7.2.20010426132615.03627eb0@mail.larwe.com> X-SW-Source: 2001-04/msg00453.html "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 * 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