public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] a little ia64 cleanup
@ 2005-05-20 15:26 Jan Beulich
  2005-05-24 18:49 ` James E Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2005-05-20 15:26 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 1318 bytes --]

This removes two orphaned structure members.

Built and tested on ia64-unknown-linux-gnu.

Jan

gas/
2005-05-20  Jan Beulich  <jbeulich@novell.com>

	* config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
	and next_slot_frag.
	(alloc_record): Remove references to next_slot_number and
	next_slot_frag.
	(emit_one_bundle): Likewise.

--- /home/jbeulich/src/binutils/mainline/2005-05-18/gas/config/tc-ia64.c	2005-05-09 08:31:38.000000000 +0200
+++ 2005-05-18/gas/config/tc-ia64.c	2005-05-20 16:42:38.439810388 +0200
@@ -695,8 +695,6 @@ typedef struct unw_rec_list {
   unwind_record r;
   unsigned long slot_number;
   fragS *slot_frag;
-  unsigned long next_slot_number;
-  fragS *next_slot_frag;
   struct unw_rec_list *next;
 } unw_rec_list;
 
@@ -1750,8 +1746,6 @@ alloc_record (unw_record_type t)
   ptr->next = NULL;
   ptr->slot_number = SLOT_NUM_NOT_SET;
   ptr->r.type = t;
-  ptr->next_slot_number = 0;
-  ptr->next_slot_frag = 0;
   return ptr;
 }
 
@@ -6916,12 +6860,6 @@ emit_one_bundle ()
 
   number_to_chars_littleendian (f + 0, t0, 8);
   number_to_chars_littleendian (f + 8, t1, 8);
-
-  if (unwind.list)
-    {
-      unwind.list->next_slot_number = (unsigned long) f + 16;
-      unwind.list->next_slot_frag = frag_now;
-    }
 }
 
 int



[-- Attachment #2: binutils-mainline-ia64-next-slot.patch --]
[-- Type: text/plain, Size: 1266 bytes --]

This removes two orphaned structure members.

Built and tested on ia64-unknown-linux-gnu.

Jan

gas/
2005-05-20  Jan Beulich  <jbeulich@novell.com>

	* config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
	and next_slot_frag.
	(alloc_record): Remove references to next_slot_number and
	next_slot_frag.
	(emit_one_bundle): Likewise.

--- /home/jbeulich/src/binutils/mainline/2005-05-18/gas/config/tc-ia64.c	2005-05-09 08:31:38.000000000 +0200
+++ 2005-05-18/gas/config/tc-ia64.c	2005-05-20 16:42:38.439810388 +0200
@@ -695,8 +695,6 @@ typedef struct unw_rec_list {
   unwind_record r;
   unsigned long slot_number;
   fragS *slot_frag;
-  unsigned long next_slot_number;
-  fragS *next_slot_frag;
   struct unw_rec_list *next;
 } unw_rec_list;
 
@@ -1750,8 +1746,6 @@ alloc_record (unw_record_type t)
   ptr->next = NULL;
   ptr->slot_number = SLOT_NUM_NOT_SET;
   ptr->r.type = t;
-  ptr->next_slot_number = 0;
-  ptr->next_slot_frag = 0;
   return ptr;
 }
 
@@ -6916,12 +6860,6 @@ emit_one_bundle ()
 
   number_to_chars_littleendian (f + 0, t0, 8);
   number_to_chars_littleendian (f + 8, t1, 8);
-
-  if (unwind.list)
-    {
-      unwind.list->next_slot_number = (unsigned long) f + 16;
-      unwind.list->next_slot_frag = frag_now;
-    }
 }
 
 int

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

* Re: [PATCH] a little ia64 cleanup
  2005-05-20 15:26 [PATCH] a little ia64 cleanup Jan Beulich
@ 2005-05-24 18:49 ` James E Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: James E Wilson @ 2005-05-24 18:49 UTC (permalink / raw)
  To: Jan Beulich; +Cc: binutils

On Fri, 2005-05-20 at 08:25, Jan Beulich wrote:
> 	* config/tc-ia64.c (struct unw_rec_list): Remove next_slot_number
> 	and next_slot_frag.
> 	(alloc_record): Remove references to next_slot_number and
> 	next_slot_frag.
> 	(emit_one_bundle): Likewise.

OK.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


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

end of thread, other threads:[~2005-05-24 18:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-20 15:26 [PATCH] a little ia64 cleanup Jan Beulich
2005-05-24 18:49 ` James E Wilson

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