public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Fix compile time warnings for arm-wince-pe target
@ 2005-03-21 20:53 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2005-03-21 20:53 UTC (permalink / raw)
  To: binutils

Hi Guys,

  I am applying the patch below to fix a couple of compile time
  warnings (about unused static functions) when building the
  arm-wince-pe target.

Cheers
  Nick

bfd/ChangeLog
2005-03-21  Nick Clifton  <nickc@redhat.com>

	* coff-arm.c (coff_link_hash_entry): Only define for non WINCE
	targets.
	(t2a1_bx_pc_insn): Likewise.
	(t2a2_noop_insn): Likewise.
	(t2a3_b_insn): Likewise.
	(t2a1_push_insn): Likewise.
	(t2a2_ldr_insn): Likewise.
	(t2a3_mov_insn): Likewise.
	(t2a4_bx_insn): Likewise.
	(t2a5_pop_insn): Likewise.
	(t2a6_bx_insn): Likewise.
	(coff_arm_relocate_section): Only declare the high_address
	variable for non WINCE targets.

Index: bfd/coff-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-arm.c,v
retrieving revision 1.57
diff -c -3 -p -r1.57 coff-arm.c
*** bfd/coff-arm.c	16 Feb 2005 02:38:53 -0000	1.57
--- bfd/coff-arm.c	21 Mar 2005 15:36:49 -0000
*************** static const struct reloc_howto_struct *
*** 113,120 ****
--- 113,122 ----
    PARAMS ((bfd *, bfd_reloc_code_real_type));
  static struct bfd_link_hash_table * coff_arm_link_hash_table_create
    PARAMS ((bfd *));
+ #ifndef ARM_WINCE
  static struct coff_link_hash_entry * find_thumb_glue
    PARAMS ((struct bfd_link_info *, const char *, bfd *));
+ #endif
  static struct coff_link_hash_entry * find_arm_glue
    PARAMS ((struct bfd_link_info *, const char *, bfd *));
  #ifndef COFF_IMAGE_WITH_PE
*************** static const insn32 a2t3_func_addr_insn 
*** 1136,1141 ****
--- 1138,1144 ----
  */
  
  #define THUMB2ARM_GLUE_SIZE (globals->support_old_code ? 20 : 8)
+ #ifndef ARM_WINCE
  static const insn16 t2a1_bx_pc_insn = 0x4778;
  static const insn16 t2a2_noop_insn  = 0x46c0;
  static const insn32 t2a3_b_insn     = 0xea000000;
*************** static const insn16 t2a3_mov_insn   = 0x
*** 1146,1151 ****
--- 1149,1155 ----
  static const insn16 t2a4_bx_insn    = 0x4730;
  static const insn32 t2a5_pop_insn   = 0xe8bd4040;
  static const insn32 t2a6_bx_insn    = 0xe12fff1e;
+ #endif
  
  /* TODO:
       We should really create new local (static) symbols in destination
*************** coff_arm_relocate_section (output_bfd, i
*** 1202,1208 ****
--- 1206,1214 ----
  {
    struct internal_reloc * rel;
    struct internal_reloc * relend;
+ #ifndef ARM_WINCE
    bfd_vma high_address = bfd_get_section_limit (input_bfd, input_section);
+ #endif
  
    rel = relocs;
    relend = rel + input_section->reloc_count;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-21 15:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-21 20:53 Fix compile time warnings for arm-wince-pe target 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).