A patch for calc_hex () in gas
H . J . Lu
hjl@valinux.com
Fri Dec 29 15:21:00 GMT 2000
On Fri, Dec 29, 2000 at 02:51:38PM -0800, Richard Henderson wrote:
> On Fri, Dec 29, 2000 at 02:21:00PM -0800, H . J . Lu wrote:
> > + if (frag_ptr->fr_type != rs_align_code)
> > {
> > unsigned int var_rep_max = octet_in_frag;
> > unsigned int var_rep_idx = octet_in_frag;
>
> I don't see how this ever worked. fr_offset means something
> different in just about every fragment type.
>
> Do things work if you use
>
> if (frag_ptr->fr_type == rs_fill)
>
> instead?
>
It works for "make check" under ia32.
--
H.J. Lu (hjl@valinux.com)
---
2000-12-29 H.J. Lu <hjl@gnu.org>
* listing.c (calc_hex): Print the variable part only if the
fragment type is rs_fill.
Index: listing.c
===================================================================
RCS file: /work/cvs/gnu/binutils/gas/listing.c,v
retrieving revision 1.6
diff -u -p -r1.6 listing.c
--- listing.c 2000/11/08 00:33:58 1.6
+++ listing.c 2000/12/29 23:16:33
+ if (frag_ptr->fr_type == rs_fill)
{
unsigned int var_rep_max = octet_in_frag;
unsigned int var_rep_idx = octet_in_frag;
More information about the Binutils
mailing list