From 6cbe03fb0f3c04045ba34bf58fc47fae2e859278 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 18 Apr 2006 09:58:26 +0000 Subject: [PATCH] * frags.c (frag_offset_fixed_p): Constify args. * frags.h (frag_offset_fixed_p): Ditto. --- gas/ChangeLog | 3 +++ gas/frags.c | 4 ++-- gas/frags.h | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index a20316e8192..23945ead5b8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,8 @@ 2006-04-18 Alan Modra + * frags.c (frag_offset_fixed_p): Constify args. + * frags.h (frag_offset_fixed_p): Ditto. + * config/tc-dlx.h (tc_coff_symbol_emit_hook): Delete. (COFF_MAGIC): Delete. diff --git a/gas/frags.c b/gas/frags.c index b08ef502cbf..adb9b198630 100644 --- a/gas/frags.c +++ b/gas/frags.c @@ -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. diff --git a/gas/frags.h b/gas/frags.h index 880446763a4..66630dbd164 100644 --- a/gas/frags.h +++ b/gas/frags.h @@ -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 */ -- 2.30.2