This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
constify frag_offset_fixed_p
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sourceware dot org
- Date: Tue, 18 Apr 2006 19:28:29 +0930
- Subject: constify frag_offset_fixed_p
Should have written it this way in the first place.
* frags.c (frag_offset_fixed_p): Constify args.
* frags.h (frag_offset_fixed_p): Ditto.
Index: gas/frags.c
===================================================================
RCS file: /cvs/src/src/gas/frags.c,v
retrieving revision 1.20
diff -u -p -r1.20 frags.c
--- gas/frags.c 6 Apr 2006 04:38:33 -0000 1.20
+++ gas/frags.c 18 Apr 2006 07:53:20 -0000
@@ -389,9 +389,9 @@ frag_append_1_char (int datum)
not already accounted for in the frag FR_ADDRESS. */
bfd_boolean
-frag_offset_fixed_p (fragS *frag1, fragS *frag2, bfd_vma *offset)
+frag_offset_fixed_p (const fragS *frag1, const fragS *frag2, bfd_vma *offset)
{
- fragS *frag;
+ const fragS *frag;
bfd_vma off;
/* Start with offset initialised to difference between the two frags.
Index: gas/frags.h
===================================================================
RCS file: /cvs/src/src/gas/frags.h,v
retrieving revision 1.21
diff -u -p -r1.21 frags.h
--- gas/frags.h 4 Apr 2006 08:04:57 -0000 1.21
+++ gas/frags.h 18 Apr 2006 07:53:20 -0000
@@ -148,6 +148,6 @@ char *frag_var (relax_stateT type,
offsetT offset,
char *opcode);
-bfd_boolean frag_offset_fixed_p (fragS *, fragS *, bfd_vma *);
+bfd_boolean frag_offset_fixed_p (const fragS *, const fragS *, bfd_vma *);
#endif /* FRAGS_H */
--
Alan Modra
IBM OzLabs - Linux Technology Centre