From 08ea70204dd193ec8cd8a1e8926c485e56959152 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 30 Jun 2012 00:27:31 +0000 Subject: [PATCH] * frags.h (frag_offset_fixed_p): Update prototype. * frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT. * expr.c (expr, resolve_expression): Likewise for frag_off var. --- gas/ChangeLog | 6 ++++++ gas/expr.c | 8 ++++---- gas/frags.c | 6 +++--- gas/frags.h | 5 +++-- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index d0e0f108b3f..948ee104ac6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +2012-06-30 Johan Olmutz Nielsen + + * frags.h (frag_offset_fixed_p): Update prototype. + * frags.c (frag_offset_fixed_p): Change type of "offset" to offsetT. + * expr.c (expr, resolve_expression): Likewise for frag_off var. + 2012-06-29 Nick Clifton PR gas/14263 diff --git a/gas/expr.c b/gas/expr.c index 0563b5b4219..105153ede32 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -1,7 +1,7 @@ /* expr.c -operands, expressions- Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 - Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011, + 2012 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -1746,7 +1746,7 @@ expr (int rankarg, /* Larger # is higher rank. */ while (op_left != O_illegal && op_rank[(int) op_left] > rank) { segT rightseg; - bfd_vma frag_off; + offsetT frag_off; input_line_pointer += op_chars; /* -> after operator. */ @@ -2030,7 +2030,7 @@ resolve_expression (expressionS *expressionP) valueT left, right; segT seg_left, seg_right; fragS *frag_left, *frag_right; - bfd_vma frag_off; + offsetT frag_off; switch (op) { diff --git a/gas/frags.c b/gas/frags.c index fe3e78f5744..c6ac4259aab 100644 --- a/gas/frags.c +++ b/gas/frags.c @@ -1,6 +1,6 @@ /* frags.c - manage frags - Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009 + 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -394,10 +394,10 @@ frag_append_1_char (int datum) not already accounted for in the frag FR_ADDRESS. */ bfd_boolean -frag_offset_fixed_p (const fragS *frag1, const fragS *frag2, bfd_vma *offset) +frag_offset_fixed_p (const fragS *frag1, const fragS *frag2, offsetT *offset) { const fragS *frag; - bfd_vma off; + offsetT off; /* Start with offset initialised to difference between the two frags. Prior to assigning frag addresses this will be zero. */ diff --git a/gas/frags.h b/gas/frags.h index a1fabfb97a5..f5846be5a5f 100644 --- a/gas/frags.h +++ b/gas/frags.h @@ -1,6 +1,7 @@ /* frags.h - Header file for the frag concept. Copyright 1987, 1992, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001, - 2002, 2003, 2004, 2005, 2006, 2007, 2010 Free Software Foundation, Inc. + 2002, 2003, 2004, 2005, 2006, 2007, 2010, 2011, 2012 + Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -154,6 +155,6 @@ char *frag_var (relax_stateT type, offsetT offset, char *opcode); -bfd_boolean frag_offset_fixed_p (const fragS *, const fragS *, bfd_vma *); +bfd_boolean frag_offset_fixed_p (const fragS *, const fragS *, offsetT *); #endif /* FRAGS_H */ -- 2.30.2