mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-17 04:43:17 +08:00
2000-09-11 Kazu Hirata <kazu@hxi.com>
* bignum-copy.c: Fix formatting. * ehopt.c: Likewise. * flonum-copy.c: Likewise. * flonum-konst.c: Likewise. * flonum-mult.c: Likewise. * literal.c: Likewise. * read.c: Likewise. * sb.c: Likewise. * stabs.c: Likewise. * subsegs.c: Likewise.
This commit is contained in:
@ -1,8 +1,18 @@
|
|||||||
2000-09-11 Kazu Hirata <kazu@hxi.com>
|
2000-09-11 Kazu Hirata <kazu@hxi.com>
|
||||||
|
|
||||||
* config/tc-i370.c: Fix formatting.
|
* bignum-copy.c: Fix formatting.
|
||||||
|
* config/tc-i370.c: Likewise.
|
||||||
* config/tc-i960.c: Likewise.
|
* config/tc-i960.c: Likewise.
|
||||||
* config/tc-m68k.c: Likewise.
|
* config/tc-m68k.c: Likewise.
|
||||||
|
* ehopt.c: Likewise.
|
||||||
|
* flonum-copy.c: Likewise.
|
||||||
|
* flonum-konst.c: Likewise.
|
||||||
|
* flonum-mult.c: Likewise.
|
||||||
|
* literal.c: Likewise.
|
||||||
|
* read.c: Likewise.
|
||||||
|
* sb.c: Likewise.
|
||||||
|
* stabs.c: Likewise.
|
||||||
|
* subsegs.c: Likewise.
|
||||||
|
|
||||||
2000-09-09 Philip Blundell <philb@gnu.org>
|
2000-09-09 Philip Blundell <philb@gnu.org>
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* bignum_copy.c - copy a bignum
|
/* bignum_copy.c - copy a bignum
|
||||||
Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
|
Copyright (C) 1987, 1990, 1991, 1992, 2000
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GAS, the GNU Assembler.
|
This file is part of GAS, the GNU Assembler.
|
||||||
|
|
||||||
@ -15,7 +16,7 @@
|
|||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with GAS; see the file COPYING. If not, write to
|
along with GAS; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
#include "as.h"
|
#include "as.h"
|
||||||
|
|
||||||
@ -43,7 +44,7 @@ bignum_copy (in, in_length, out, out_length)
|
|||||||
if (out_length < in_length)
|
if (out_length < in_length)
|
||||||
{
|
{
|
||||||
LITTLENUM_TYPE *p; /* -> most significant (non-zero) input
|
LITTLENUM_TYPE *p; /* -> most significant (non-zero) input
|
||||||
littlenum. */
|
littlenum. */
|
||||||
|
|
||||||
memcpy ((void *) out, (void *) in,
|
memcpy ((void *) out, (void *) in,
|
||||||
(unsigned int) out_length << LITTLENUM_SHIFT);
|
(unsigned int) out_length << LITTLENUM_SHIFT);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* ehopt.c--optimize gcc exception frame information.
|
/* ehopt.c--optimize gcc exception frame information.
|
||||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
Copyright (C) 1998, 2000 Free Software Foundation, Inc.
|
||||||
Written by Ian Lance Taylor <ian@cygnus.com>.
|
Written by Ian Lance Taylor <ian@cygnus.com>.
|
||||||
|
|
||||||
This file is part of GAS, the GNU Assembler.
|
This file is part of GAS, the GNU Assembler.
|
||||||
@ -17,7 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with GAS; see the file COPYING. If not, write to the Free
|
along with GAS; see the file COPYING. If not, write to the Free
|
||||||
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||||
02111-1307, USA. */
|
02111-1307, USA. */
|
||||||
|
|
||||||
#include "as.h"
|
#include "as.h"
|
||||||
#include "subsegs.h"
|
#include "subsegs.h"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* flonum_copy.c - copy a flonum
|
/* flonum_copy.c - copy a flonum
|
||||||
Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
|
Copyright (C) 1987, 1990, 1991, 1992, 2000 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GAS, the GNU Assembler.
|
This file is part of GAS, the GNU Assembler.
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ flonum_copy (in, out)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int shorten; /* 1-origin. Number of littlenums we drop. */
|
int shorten; /* 1-origin. Number of littlenums we drop. */
|
||||||
|
|
||||||
shorten = in_length - out_length;
|
shorten = in_length - out_length;
|
||||||
/* Assume out_length >= 0 ! */
|
/* Assume out_length >= 0 ! */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* flonum_const.c - Useful Flonum constants
|
/* flonum_const.c - Useful Flonum constants
|
||||||
Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 1996
|
Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 2000
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GAS, the GNU Assembler.
|
This file is part of GAS, the GNU Assembler.
|
||||||
@ -23,7 +23,7 @@
|
|||||||
#include "flonum.h"
|
#include "flonum.h"
|
||||||
/* JF: I added the last entry to this table, and I'm not
|
/* JF: I added the last entry to this table, and I'm not
|
||||||
sure if its right or not. Could go either way. I wish
|
sure if its right or not. Could go either way. I wish
|
||||||
I really understood this stuff. */
|
I really understood this stuff. */
|
||||||
|
|
||||||
const int table_size_of_flonum_powers_of_ten = 13;
|
const int table_size_of_flonum_powers_of_ten = 13;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
/* flonum_mult.c - multiply two flonums
|
/* flonum_mult.c - multiply two flonums
|
||||||
Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
|
Copyright (C) 1987, 1990, 1991, 1992, 2000
|
||||||
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Gas, the GNU Assembler.
|
This file is part of Gas, the GNU Assembler.
|
||||||
|
|
||||||
@ -160,7 +161,7 @@ flonum_multip (a, b, product)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* [P]-> position # size_of_sum + 1.
|
/* [P]-> position # size_of_sum + 1.
|
||||||
This is where 'carry' should go. */
|
This is where 'carry' should go. */
|
||||||
#ifdef TRACE
|
#ifdef TRACE
|
||||||
printf ("final carry =%04x\n", carry);
|
printf ("final carry =%04x\n", carry);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* as.c - GAS literal pool management.
|
/* as.c - GAS literal pool management.
|
||||||
Copyright (C) 1994 Free Software Foundation, Inc.
|
Copyright (C) 1994, 2000 Free Software Foundation, Inc.
|
||||||
Written by Ken Raeburn (raeburn@cygnus.com).
|
Written by Ken Raeburn (raeburn@cygnus.com).
|
||||||
|
|
||||||
This file is part of GAS, the GNU Assembler.
|
This file is part of GAS, the GNU Assembler.
|
||||||
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with GAS; see the file COPYING. If not, write to
|
along with GAS; see the file COPYING. If not, write to
|
||||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
/* This isn't quite a "constant" pool. Some of the values may get
|
/* This isn't quite a "constant" pool. Some of the values may get
|
||||||
adjusted at run time, e.g., for symbolic relocations when shared
|
adjusted at run time, e.g., for symbolic relocations when shared
|
||||||
|
@ -17,7 +17,7 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with GAS; see the file COPYING. If not, write to the Free
|
along with GAS; see the file COPYING. If not, write to the Free
|
||||||
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||||
02111-1307, USA. */
|
02111-1307, USA. */
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* If your chars aren't 8 bits, you will change this a bit.
|
/* If your chars aren't 8 bits, you will change this a bit.
|
||||||
|
17
gas/sb.c
17
gas/sb.c
@ -1,5 +1,5 @@
|
|||||||
/* sb.c - string buffer manipulation routines
|
/* sb.c - string buffer manipulation routines
|
||||||
Copyright (C) 1994, 1995 Free Software Foundation, Inc.
|
Copyright (C) 1994, 1995, 2000 Free Software Foundation, Inc.
|
||||||
|
|
||||||
Written by Steve and Judy Chamberlain of Cygnus Support,
|
Written by Steve and Judy Chamberlain of Cygnus Support,
|
||||||
sac@cygnus.com
|
sac@cygnus.com
|
||||||
@ -19,7 +19,7 @@
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with GAS; see the file COPYING. If not, write to the Free
|
along with GAS; see the file COPYING. If not, write to the Free
|
||||||
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||||
02111-1307, USA. */
|
02111-1307, USA. */
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -62,7 +62,7 @@ int string_count[sb_max_power_two];
|
|||||||
|
|
||||||
static sb_list_vector free_list;
|
static sb_list_vector free_list;
|
||||||
|
|
||||||
/* initializes an sb. */
|
/* initializes an sb. */
|
||||||
|
|
||||||
void
|
void
|
||||||
sb_build (ptr, size)
|
sb_build (ptr, size)
|
||||||
@ -97,7 +97,6 @@ sb_build (ptr, size)
|
|||||||
ptr->item = e;
|
ptr->item = e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
sb_new (ptr)
|
sb_new (ptr)
|
||||||
sb *ptr;
|
sb *ptr;
|
||||||
@ -129,7 +128,7 @@ sb_add_sb (ptr, s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* make sure that the sb at ptr has room for another len characters,
|
/* make sure that the sb at ptr has room for another len characters,
|
||||||
and grow it if it doesn't. */
|
and grow it if it doesn't. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
sb_check (ptr, len)
|
sb_check (ptr, len)
|
||||||
@ -158,7 +157,7 @@ sb_reset (ptr)
|
|||||||
ptr->len = 0;
|
ptr->len = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* add character c to the end of the sb at ptr. */
|
/* add character c to the end of the sb at ptr. */
|
||||||
|
|
||||||
void
|
void
|
||||||
sb_add_char (ptr, c)
|
sb_add_char (ptr, c)
|
||||||
@ -169,7 +168,7 @@ sb_add_char (ptr, c)
|
|||||||
ptr->ptr[ptr->len++] = c;
|
ptr->ptr[ptr->len++] = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* add null terminated string s to the end of sb at ptr. */
|
/* add null terminated string s to the end of sb at ptr. */
|
||||||
|
|
||||||
void
|
void
|
||||||
sb_add_string (ptr, s)
|
sb_add_string (ptr, s)
|
||||||
@ -228,7 +227,7 @@ sb_print_at (outfile, idx, ptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* put a null at the end of the sb at in and return the start of the
|
/* put a null at the end of the sb at in and return the start of the
|
||||||
string, so that it can be used as an arg to printf %s. */
|
string, so that it can be used as an arg to printf %s. */
|
||||||
|
|
||||||
char *
|
char *
|
||||||
sb_name (in)
|
sb_name (in)
|
||||||
@ -267,7 +266,7 @@ sb_skip_white (idx, ptr)
|
|||||||
|
|
||||||
/* start at the index idx into the sb at ptr. skips whitespace,
|
/* start at the index idx into the sb at ptr. skips whitespace,
|
||||||
a comma and any following whitespace. returnes the index of the
|
a comma and any following whitespace. returnes the index of the
|
||||||
next character. */
|
next character. */
|
||||||
|
|
||||||
int
|
int
|
||||||
sb_skip_comma (idx, ptr)
|
sb_skip_comma (idx, ptr)
|
||||||
|
16
gas/stabs.c
16
gas/stabs.c
@ -1,5 +1,5 @@
|
|||||||
/* Generic stabs parsing for gas.
|
/* Generic stabs parsing for gas.
|
||||||
Copyright (C) 1989, 90, 91, 93, 94, 95, 96, 97, 98, 1999
|
Copyright (C) 1989, 90, 91, 93, 94, 95, 96, 97, 98, 99, 2000
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GAS, the GNU Assembler.
|
This file is part of GAS, the GNU Assembler.
|
||||||
@ -17,7 +17,7 @@ the GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with GAS; see the file COPYING. If not, write to the Free
|
along with GAS; see the file COPYING. If not, write to the Free
|
||||||
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||||
02111-1307, USA. */
|
02111-1307, USA. */
|
||||||
|
|
||||||
#include "as.h"
|
#include "as.h"
|
||||||
#include "obstack.h"
|
#include "obstack.h"
|
||||||
@ -25,7 +25,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|||||||
#include "ecoff.h"
|
#include "ecoff.h"
|
||||||
|
|
||||||
/* We need this, despite the apparent object format dependency, since
|
/* We need this, despite the apparent object format dependency, since
|
||||||
it defines stab types, which all object formats can use now. */
|
it defines stab types, which all object formats can use now. */
|
||||||
|
|
||||||
#include "aout/stab_gnu.h"
|
#include "aout/stab_gnu.h"
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ get_stab_string_offset (string, stabstr_secname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (length > 0)
|
if (length > 0)
|
||||||
{ /* Ordinary case. */
|
{ /* Ordinary case. */
|
||||||
p = frag_more (length + 1);
|
p = frag_more (length + 1);
|
||||||
strcpy (p, string);
|
strcpy (p, string);
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ aout_process_stab (what, string, type, other, desc)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This can handle different kinds of stabs (s,n,d) and different
|
/* This can handle different kinds of stabs (s,n,d) and different
|
||||||
kinds of stab sections. */
|
kinds of stab sections. */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
s_stab_generic (what, stab_secname, stabstr_secname)
|
s_stab_generic (what, stab_secname, stabstr_secname)
|
||||||
@ -383,7 +383,7 @@ s_stab_generic (what, stab_secname, stabstr_secname)
|
|||||||
demand_empty_rest_of_line ();
|
demand_empty_rest_of_line ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Regular stab directive. */
|
/* Regular stab directive. */
|
||||||
|
|
||||||
void
|
void
|
||||||
s_stab (what)
|
s_stab (what)
|
||||||
@ -392,7 +392,7 @@ s_stab (what)
|
|||||||
s_stab_generic (what, STAB_SECTION_NAME, STAB_STRING_SECTION_NAME);
|
s_stab_generic (what, STAB_SECTION_NAME, STAB_STRING_SECTION_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* "Extended stabs", used in Solaris only now. */
|
/* "Extended stabs", used in Solaris only now. */
|
||||||
|
|
||||||
void
|
void
|
||||||
s_xstab (what)
|
s_xstab (what)
|
||||||
@ -524,7 +524,7 @@ generate_asm_file (type, file)
|
|||||||
int len = (bslash ? (bslash - tmp + 1) : strlen (tmp));
|
int len = (bslash ? (bslash - tmp + 1) : strlen (tmp));
|
||||||
/* double all backslashes, since demand_copy_C_string (used by
|
/* double all backslashes, since demand_copy_C_string (used by
|
||||||
s_stab to extract the part in quotes) will try to replace them as
|
s_stab to extract the part in quotes) will try to replace them as
|
||||||
escape sequences. backslash may appear in a filespec. */
|
escape sequences. backslash may appear in a filespec. */
|
||||||
strncpy (bufp, tmp, len);
|
strncpy (bufp, tmp, len);
|
||||||
tmp += len;
|
tmp += len;
|
||||||
bufp += len;
|
bufp += len;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* subsegs.c - subsegments -
|
/* subsegs.c - subsegments -
|
||||||
Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999
|
Copyright (C) 1987, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GAS, the GNU Assembler.
|
This file is part of GAS, the GNU Assembler.
|
||||||
@ -37,7 +37,7 @@ static struct obstack frchains;
|
|||||||
segment_info_type segment_info[SEG_MAXIMUM_ORDINAL];
|
segment_info_type segment_info[SEG_MAXIMUM_ORDINAL];
|
||||||
|
|
||||||
#else
|
#else
|
||||||
/* Commented in "subsegs.h". */
|
/* Commented in "subsegs.h". */
|
||||||
frchainS *data0_frchainP, *bss0_frchainP;
|
frchainS *data0_frchainP, *bss0_frchainP;
|
||||||
|
|
||||||
#endif /* MANY_SEGMENTS */
|
#endif /* MANY_SEGMENTS */
|
||||||
@ -62,7 +62,7 @@ char const *const seg_name[] =
|
|||||||
"transfert vector postload",
|
"transfert vector postload",
|
||||||
"register",
|
"register",
|
||||||
"",
|
"",
|
||||||
}; /* Used by error reporters, dumpers etc. */
|
}; /* Used by error reporters, dumpers etc. */
|
||||||
#else /* BFD_ASSEMBLER */
|
#else /* BFD_ASSEMBLER */
|
||||||
|
|
||||||
/* Gas segment information for bfd_abs_section_ptr and
|
/* Gas segment information for bfd_abs_section_ptr and
|
||||||
@ -103,12 +103,12 @@ subsegs_begin ()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
frchain_root = NULL;
|
frchain_root = NULL;
|
||||||
frchain_now = NULL; /* Warn new_subseg() that we are booting. */
|
frchain_now = NULL; /* Warn new_subseg() that we are booting. */
|
||||||
|
|
||||||
frag_now = &dummy_frag;
|
frag_now = &dummy_frag;
|
||||||
|
|
||||||
#ifndef BFD_ASSEMBLER
|
#ifndef BFD_ASSEMBLER
|
||||||
now_subseg = 42; /* Lie for 1st call to subseg_new. */
|
now_subseg = 42; /* Lie for 1st call to subseg_new. */
|
||||||
#ifdef MANY_SEGMENTS
|
#ifdef MANY_SEGMENTS
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -275,7 +275,7 @@ subseg_set_rest (seg, subseg)
|
|||||||
*/
|
*/
|
||||||
if (!frcP
|
if (!frcP
|
||||||
|| (frcP->frch_seg > seg
|
|| (frcP->frch_seg > seg
|
||||||
|| frcP->frch_subseg > subseg)) /* Kinky logic only works with 2 segments. */
|
|| frcP->frch_subseg > subseg)) /* Kinky logic only works with 2 segments. */
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* This should be the only code that creates a frchainS.
|
* This should be the only code that creates a frchainS.
|
||||||
|
Reference in New Issue
Block a user