diff options
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/obj-coff.c | 4 | ||||
-rw-r--r-- | gas/config/obj-ecoff.h | 4 | ||||
-rw-r--r-- | gas/config/obj-elf.c | 4 | ||||
-rw-r--r-- | gas/config/tc-a29k.c | 11 | ||||
-rw-r--r-- | gas/config/tc-arc.c | 90 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 13 | ||||
-rw-r--r-- | gas/config/tc-cris.h | 5 | ||||
-rw-r--r-- | gas/config/tc-frv.c | 4 | ||||
-rw-r--r-- | gas/config/tc-m68k.c | 3 | ||||
-rw-r--r-- | gas/config/tc-mcore.c | 11 | ||||
-rw-r--r-- | gas/config/tc-mips.c | 18 | ||||
-rw-r--r-- | gas/config/tc-mmix.c | 21 | ||||
-rw-r--r-- | gas/config/tc-s390.c | 6 | ||||
-rw-r--r-- | gas/config/tc-sh.c | 2 | ||||
-rw-r--r-- | gas/config/tc-sparc.c | 14 | ||||
-rw-r--r-- | gas/config/tc-tic4x.c | 6 | ||||
-rw-r--r-- | gas/config/tc-tic4x.h | 4 | ||||
-rw-r--r-- | gas/config/tc-vax.c | 9 | ||||
-rw-r--r-- | gas/config/tc-xstormy16.c | 10 |
19 files changed, 115 insertions, 124 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index bb97280..69b53ff 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -1,6 +1,6 @@ /* coff object file format Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004 + 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GAS. @@ -1859,7 +1859,7 @@ int function_lineoff = -1; /* Offset in line#s where the last function into the string table. */ struct filename_list { - char *filename; + const char *filename; struct filename_list *next; }; diff --git a/gas/config/obj-ecoff.h b/gas/config/obj-ecoff.h index 9dbb4e5..9f14d3b 100644 --- a/gas/config/obj-ecoff.h +++ b/gas/config/obj-ecoff.h @@ -1,5 +1,5 @@ /* ECOFF object file format header file. - Copyright 1993, 1994, 1995, 1996, 1997, 1999, 2002 + Copyright 1993, 1994, 1995, 1996, 1997, 1999, 2002, 2004, 2005 Free Software Foundation, Inc. Contributed by Cygnus Support. Written by Ian Lance Taylor <ian@cygnus.com>. @@ -63,7 +63,7 @@ extern void ecoff_frob_file PARAMS ((void)); #define obj_symbol_new_hook ecoff_symbol_new_hook /* Record file switches in the ECOFF symbol table. */ -#define obj_app_file(name, app) ecoff_new_file (name) +#define obj_app_file(name, app) ecoff_new_file (name, app) /* At the moment we don't want to do any stabs processing in read.c. */ #define OBJ_PROCESS_STAB(seg, what, string, type, other, desc) \ diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c index c25dbbc..c7907b3 100644 --- a/gas/config/obj-elf.c +++ b/gas/config/obj-elf.c @@ -1,6 +1,6 @@ /* ELF object file format Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, - 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -260,7 +260,7 @@ elf_file_symbol (const char *s, int appfile) } #ifdef NEED_ECOFF_DEBUG - ecoff_new_file (s); + ecoff_new_file (s, appfile); #endif } diff --git a/gas/config/tc-a29k.c b/gas/config/tc-a29k.c index 2350fcb..9e3fb44 100644 --- a/gas/config/tc-a29k.c +++ b/gas/config/tc-a29k.c @@ -1,5 +1,6 @@ /* tc-a29k.c -- Assemble for the AMD 29000. - Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1998, 2000, 2001, 2002 + Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1998, 2000, 2001, + 2002, 2005 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -787,10 +788,10 @@ md_number_to_chars (buf, val, n) void md_apply_fix3 (fixP, valP, seg) fixS *fixP; - valueT * valP; + valueT *valP; segT seg ATTRIBUTE_UNUSED; { - long val = *valP; + valueT val = *valP; char *buf = fixP->fx_where + fixP->fx_frag->fr_literal; fixP->fx_addnumber = val; /* Remember value for emit_reloc. */ @@ -864,9 +865,7 @@ md_apply_fix3 (fixP, valP, seg) } else if (fixP->fx_pcrel) { - long v = val >> 17; - - if (v != 0 && v != -1) + if (val + 0x20000 > 0x3ffff) as_bad_where (fixP->fx_file, fixP->fx_line, "call/jmp target out of range"); } diff --git a/gas/config/tc-arc.c b/gas/config/tc-arc.c index 6409171..445ea48 100644 --- a/gas/config/tc-arc.c +++ b/gas/config/tc-arc.c @@ -1,5 +1,5 @@ /* tc-arc.c -- Assembler for the ARC - Copyright 1994, 1995, 1997, 1999, 2000, 2001, 2002, 2003, 2004 + Copyright 1994, 1995, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. Contributed by Doug Evans (dje@cygnus.com). @@ -1645,50 +1645,52 @@ md_operand (expressionP) { char *p = input_line_pointer; - if (*p == '%') - if (strncmp (p, "%st(", 4) == 0) - { - input_line_pointer += 4; - expression (expressionP); - if (*input_line_pointer != ')') - { - as_bad ("missing ')' in %%-op"); - return; - } - ++input_line_pointer; - arc_code_symbol (expressionP); - } - else - { - /* It could be a register. */ - int i, l; - struct arc_ext_operand_value *ext_oper = arc_ext_operands; - p++; + if (*p != '%') + return; - while (ext_oper) - { - l = strlen (ext_oper->operand.name); - if (!strncmp (p, ext_oper->operand.name, l) && !ISALNUM (*(p + l))) - { - input_line_pointer += l + 1; - expressionP->X_op = O_register; - expressionP->X_add_number = (int) &ext_oper->operand; - return; - } - ext_oper = ext_oper->next; - } - for (i = 0; i < arc_reg_names_count; i++) - { - l = strlen (arc_reg_names[i].name); - if (!strncmp (p, arc_reg_names[i].name, l) && !ISALNUM (*(p + l))) - { - input_line_pointer += l + 1; - expressionP->X_op = O_register; - expressionP->X_add_number = (int) &arc_reg_names[i]; - break; - } - } - } + if (strncmp (p, "%st(", 4) == 0) + { + input_line_pointer += 4; + expression (expressionP); + if (*input_line_pointer != ')') + { + as_bad ("missing ')' in %%-op"); + return; + } + ++input_line_pointer; + arc_code_symbol (expressionP); + } + else + { + /* It could be a register. */ + int i, l; + struct arc_ext_operand_value *ext_oper = arc_ext_operands; + p++; + + while (ext_oper) + { + l = strlen (ext_oper->operand.name); + if (!strncmp (p, ext_oper->operand.name, l) && !ISALNUM (*(p + l))) + { + input_line_pointer += l + 1; + expressionP->X_op = O_register; + expressionP->X_add_number = (int) &ext_oper->operand; + return; + } + ext_oper = ext_oper->next; + } + for (i = 0; i < arc_reg_names_count; i++) + { + l = strlen (arc_reg_names[i].name); + if (!strncmp (p, arc_reg_names[i].name, l) && !ISALNUM (*(p + l))) + { + input_line_pointer += l + 1; + expressionP->X_op = O_register; + expressionP->X_add_number = (int) &arc_reg_names[i]; + break; + } + } + } } /* We have no need to default values of symbols. diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index c40df52..7a7c41e 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -1,6 +1,6 @@ /* tc-arm.c -- Assemble for the ARM - Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2005 + Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, + 2004, 2005 Free Software Foundation, Inc. Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org) Modified by David Taylor (dtaylor@armltd.co.uk) @@ -4551,6 +4551,7 @@ do_t_bkpt (char * str) end_of_line (str); } +#ifdef OBJ_ELF static bfd_reloc_code_real_type arm_parse_reloc (void) { @@ -4591,6 +4592,7 @@ arm_parse_reloc (void) return reloc_map[i].reloc; } +#endif /* ARM V5 branch-link-exchange (argument parse) for BLX(1) only. Expects inst.instruction is set for BLX(1). @@ -11028,6 +11030,7 @@ md_begin (void) cpu_variant = mcpu_cpu_opt | mfpu_opt; +#if defined OBJ_COFF || defined OBJ_ELF { unsigned int flags = 0; @@ -11038,7 +11041,6 @@ md_begin (void) { case EF_ARM_EABI_UNKNOWN: #endif -#if defined OBJ_COFF || defined OBJ_ELF /* Set the flags in the private structure. */ if (uses_apcs_26) flags |= F_APCS26; if (support_interwork) flags |= F_INTERWORK; @@ -11064,7 +11066,7 @@ md_begin (void) /* Using VFP conventions (even if soft-float). */ if (cpu_variant & FPU_VFP_EXT_NONE) flags |= F_VFP_FLOAT; -#endif + #if defined OBJ_ELF if (cpu_variant & FPU_ARCH_MAVERICK) flags |= EF_ARM_MAVERICK_FLOAT; @@ -11078,7 +11080,6 @@ md_begin (void) abort (); } #endif -#if defined OBJ_COFF || defined OBJ_ELF bfd_set_private_flags (stdoutput, flags); /* We have run out flags in the COFF header to encode the @@ -11098,8 +11099,8 @@ md_begin (void) bfd_set_section_contents (stdoutput, sec, NULL, 0, 0); } } -#endif } +#endif /* Record the CPU type as well. */ switch (cpu_variant & ARM_CPU_MASK) diff --git a/gas/config/tc-cris.h b/gas/config/tc-cris.h index 2f969c6..bb7a6ac 100644 --- a/gas/config/tc-cris.h +++ b/gas/config/tc-cris.h @@ -1,5 +1,6 @@ /* tc-cris.h -- Header file for tc-cris.c, the CRIS GAS port. - Copyright 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright 2000, 2001, 2002, 2003, 2004, 2005 + Free Software Foundation, Inc. Contributed by Axis Communications AB, Lund, Sweden. Originally written for GAS 1.38.1 by Mikael Asker. @@ -152,7 +153,7 @@ extern void tc_cris_check_adjusted_broken_word PARAMS ((offsetT, tc_cris_check_adjusted_broken_word ((offsetT) (new_offset), brokw) /* We don't want any implicit alignment, so we do nothing. */ -#define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) +#define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) do { } while (0) /* CRIS instructions, with operands and prefixes included, are a multiple of two bytes long. */ diff --git a/gas/config/tc-frv.c b/gas/config/tc-frv.c index c75018d..c737dcd 100644 --- a/gas/config/tc-frv.c +++ b/gas/config/tc-frv.c @@ -1,5 +1,5 @@ /* tc-frv.c -- Assembler for the Fujitsu FRV. - Copyright 2002, 2003 Free Software Foundation. + Copyright 2002, 2003, 2004, 2005 Free Software Foundation. This file is part of GAS, the GNU Assembler. @@ -1423,7 +1423,7 @@ frv_force_relocation (fix) fixS * fix; { switch (fix->fx_r_type < BFD_RELOC_UNUSED - ? fix->fx_r_type + ? (int) fix->fx_r_type : fix->fx_cgen.opinfo) { case BFD_RELOC_FRV_GPREL12: diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index f0a87b3..bdd4cae 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -1,6 +1,6 @@ /* tc-m68k.c -- Assemble for the m68k family Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, - 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -7092,7 +7092,6 @@ md_parse_option (int c, char *arg) { int i; unsigned long arch; - const char *oarg = arg; arg += 3; if (*arg == 'm') diff --git a/gas/config/tc-mcore.c b/gas/config/tc-mcore.c index c10b75d..02f2139 100644 --- a/gas/config/tc-mcore.c +++ b/gas/config/tc-mcore.c @@ -1,5 +1,6 @@ /* tc-mcore.c -- Assemble code for M*Core - Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + Copyright 1999, 2000, 2001, 2002, 2003, 2005 + Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -42,7 +43,7 @@ static void mcore_cons PARAMS ((int)); static void mcore_float_cons PARAMS ((int)); static void mcore_stringer PARAMS ((int)); static void mcore_fill PARAMS ((int)); -static int log2 PARAMS ((unsigned int)); +static int mylog2 PARAMS ((unsigned int)); static char * parse_reg PARAMS ((char *, unsigned *)); static char * parse_creg PARAMS ((char *, unsigned *)); static char * parse_exp PARAMS ((char *, expressionS *)); @@ -412,7 +413,7 @@ md_begin () /* Get a log2(val). */ static int -log2 (val) +mylog2 (val) unsigned int val; { int log = -1; @@ -1146,7 +1147,7 @@ md_assemble (str) op_end = parse_imm (op_end + 1, & reg, 1, 1 << 31); /* Further restrict the immediate to a power of two. */ if ((reg & (reg - 1)) == 0) - reg = log2 (reg); + reg = mylog2 (reg); else { reg = 0; @@ -1203,7 +1204,7 @@ md_assemble (str) /* Further restrict the immediate to a power of two. */ if ((reg & (reg - 1)) == 0) - reg = log2 (reg); + reg = mylog2 (reg); else { reg = 0; diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 17a6dbd..0e246dd 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -1,6 +1,6 @@ /* tc-mips.c -- assemble code for a MIPS chip. Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, - 2003, 2004 Free Software Foundation, Inc. + 2003, 2004, 2005 Free Software Foundation, Inc. Contributed by the OSF and Ralph Campbell. Written by Keith Knowles and Ralph Campbell, working independently. Modified for ECOFF and R4000 support by Ian Lance Taylor of Cygnus @@ -2093,7 +2093,7 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr, { if (address_expr->X_op == O_constant) { - valueT tmp; + unsigned int tmp; switch (*reloc_type) { @@ -2102,20 +2102,18 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr, break; case BFD_RELOC_MIPS_HIGHEST: - tmp = (address_expr->X_add_number - + ((valueT) 0x8000 << 32) + 0x80008000) >> 16; - tmp >>= 16; - ip->insn_opcode |= (tmp >> 16) & 0xffff; + tmp = (address_expr->X_add_number + 0x800080008000ull) >> 48; + ip->insn_opcode |= tmp & 0xffff; break; case BFD_RELOC_MIPS_HIGHER: - tmp = (address_expr->X_add_number + 0x80008000) >> 16; - ip->insn_opcode |= (tmp >> 16) & 0xffff; + tmp = (address_expr->X_add_number + 0x80008000ull) >> 32; + ip->insn_opcode |= tmp & 0xffff; break; case BFD_RELOC_HI16_S: - ip->insn_opcode |= ((address_expr->X_add_number + 0x8000) - >> 16) & 0xffff; + tmp = (address_expr->X_add_number + 0x8000) >> 16; + ip->insn_opcode |= tmp & 0xffff; break; case BFD_RELOC_HI16: diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c index acd9321..600f021 100644 --- a/gas/config/tc-mmix.c +++ b/gas/config/tc-mmix.c @@ -1,5 +1,5 @@ /* tc-mmix.c -- Assembler for Don Knuth's MMIX. - Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation. + Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation. This file is part of GAS, the GNU Assembler. @@ -301,22 +301,9 @@ struct obstack mmix_sym_obstack; #define PUSHJ_4B GETA_3B /* We'll very rarely have sections longer than LONG_MAX, but we'll make a - feeble attempt at getting 64-bit C99 or gcc-specific values (assuming - long long is 64 bits on the host). */ -#ifdef LLONG_MIN -#define PUSHJSTUB_MIN LLONG_MIN -#elif defined (LONG_LONG_MIN) -#define PUSHJSTUB_MIN LONG_LONG_MIN -#else -#define PUSHJSTUB_MIN LONG_MIN -#endif -#ifdef LLONG_MAX -#define PUSHJSTUB_MAX LLONG_MAX -#elif defined (LONG_LONG_MAX) -#define PUSHJSTUB_MAX LONG_LONG_MAX -#else -#define PUSHJSTUB_MAX LONG_MAX -#endif + feeble attempt at getting 64-bit values. */ +#define PUSHJSTUB_MAX ((offsetT) (((addressT) -1) >> 1)) +#define PUSHJSTUB_MIN (-PUSHJSTUB_MAX - 1) #define JMP_0F (65536 * 256 * 4 - 8) #define JMP_0B (-65536 * 256 * 4 - 4) diff --git a/gas/config/tc-s390.c b/gas/config/tc-s390.c index 8bb9697..13ced8b 100644 --- a/gas/config/tc-s390.c +++ b/gas/config/tc-s390.c @@ -1,5 +1,6 @@ /* tc-s390.c -- Assemble for the S390 - Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright 2000, 2001, 2002, 2003, 2004, 2005 + Free Software Foundation, Inc. Contributed by Martin Schwidefsky (schwidefsky@de.ibm.com). This file is part of GAS, the GNU Assembler. @@ -1596,13 +1597,10 @@ s390_insn (ignore) if (exp.X_op == O_constant) { if ( ( opformat->oplen == 6 - && (addressT) exp.X_add_number >= 0 && (addressT) exp.X_add_number < (1ULL << 48)) || ( opformat->oplen == 4 - && (addressT) exp.X_add_number >= 0 && (addressT) exp.X_add_number < (1ULL << 32)) || ( opformat->oplen == 2 - && (addressT) exp.X_add_number >= 0 && (addressT) exp.X_add_number < (1ULL << 16))) md_number_to_chars (insn, exp.X_add_number, opformat->oplen); else diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index d5e9267..2628ff7 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -4556,7 +4556,6 @@ sh_parse_name (char const *name, expressionS *exprP, char *nextcharP) return 1; } -#endif void sh_cfi_frame_initial_instructions (void) @@ -4606,4 +4605,5 @@ sh_regname_to_dw2regnum (const char *regname) } return regnum; } +#endif /* OBJ_ELF */ #endif /* BFD_ASSEMBLER */ diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index da10db2..49f218a 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -1,6 +1,6 @@ /* tc-sparc.c -- Assemble for the SPARC Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004 + 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -133,7 +133,7 @@ int sparc_cie_data_alignment; /* Handle of the OPCODE hash table. */ static struct hash_control *op_hash; -static int log2 PARAMS ((int)); +static int mylog2 PARAMS ((int)); static void s_data1 PARAMS ((void)); static void s_seg PARAMS ((int)); static void s_proc PARAMS ((int)); @@ -3637,7 +3637,7 @@ md_pcrel_from (fixP) of two. */ static int -log2 (value) +mylog2 (value) int value; { int shift; @@ -3739,7 +3739,7 @@ s_reserve (ignore) if (align != 0) { - temp = log2 (align); + temp = mylog2 (align); if (temp < 0) { as_bad (_("alignment not a power of 2")); @@ -3877,7 +3877,7 @@ s_common (ignore) if (temp > max_alignment) { temp = max_alignment; - as_warn (_("alignment too large; assuming %d"), temp); + as_warn (_("alignment too large; assuming %ld"), (long) temp); } #endif @@ -3902,7 +3902,7 @@ s_common (ignore) if (temp == 0) align = 0; else - align = log2 (temp); + align = mylog2 (temp); if (align < 0) { @@ -4225,7 +4225,7 @@ sparc_cons_align (nbytes) if (sparc_no_align_cons) return; - nalign = log2 (nbytes); + nalign = mylog2 (nbytes); if (nalign == 0) return; diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c index f0308da..77f2ec6 100644 --- a/gas/config/tc-tic4x.c +++ b/gas/config/tc-tic4x.c @@ -1,5 +1,5 @@ /* tc-tic4x.c -- Assemble for the Texas Instruments TMS320C[34]x. - Copyright (C) 1997,1998, 2002, 2003 Free Software Foundation. + Copyright (C) 1997,1998, 2002, 2003, 2005 Free Software Foundation. Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz) @@ -708,7 +708,7 @@ tic4x_insert_reg (regname, regnum) symbol_table_insert (symbol_new (regname, reg_section, (valueT) regnum, &zero_address_frag)); for (i = 0; regname[i]; i++) - buf[i] = islower (regname[i]) ? TOUPPER (regname[i]) : regname[i]; + buf[i] = ISLOWER (regname[i]) ? TOUPPER (regname[i]) : regname[i]; buf[i] = '\0'; symbol_table_insert (symbol_new (buf, reg_section, (valueT) regnum, @@ -3090,7 +3090,7 @@ tic4x_do_align (alignment, fill, len, max) int len ATTRIBUTE_UNUSED; int max ATTRIBUTE_UNUSED; { - unsigned long nop = NOP_OPCODE; + unsigned long nop = TIC_NOP_OPCODE; /* Because we are talking lwords, not bytes, adjust alignment to do words */ alignment += 2; diff --git a/gas/config/tc-tic4x.h b/gas/config/tc-tic4x.h index 0d6c72c..eb7fcec 100644 --- a/gas/config/tc-tic4x.h +++ b/gas/config/tc-tic4x.h @@ -1,5 +1,5 @@ /* tc-tic4x.h -- Assemble for the Texas TMS320C[34]X. - Copyright (C) 1997, 2002, 2003 Free Software Foundation. + Copyright (C) 1997, 2002, 2003, 2005 Free Software Foundation. Contributed by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz) @@ -65,7 +65,7 @@ #define TC_COFF_SIZEMACHDEP(frag) tc_coff_sizemachdep (frag) #define NEED_FX_R_TYPE -#define NOP_OPCODE 0x0c800000 +#define TIC_NOP_OPCODE 0x0c800000 #define reloc_type int diff --git a/gas/config/tc-vax.c b/gas/config/tc-vax.c index ea7d1d6..4cf9e15 100644 --- a/gas/config/tc-vax.c +++ b/gas/config/tc-vax.c @@ -1,5 +1,6 @@ /* tc-vax.c - vax-specific - - Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1998, 2000, 2001, 2002, 2003 + Copyright 1987, 1991, 1992, 1993, 1994, 1995, 1998, 2000, 2001, 2002, + 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -29,6 +30,10 @@ #include "elf/vax.h" #endif +#if defined (OBJ_AOUT) && !defined (BFD_ASSEMBLER) && defined (TE_NetBSD) +#include <netinet/in.h> +#endif + /* These chars start a comment anywhere in a source file (except inside another comment */ const char comment_chars[] = "#"; @@ -3407,7 +3412,7 @@ tc_headers_hook(headers) { #ifdef TE_NetBSD N_SET_INFO(headers->header, OMAGIC, M_VAX4K_NETBSD, 0); - headers->header.a_info = htonl(headers->header.a_info); + headers->header.a_info = htonl (headers->header.a_info); #endif } #endif /* !BFD_ASSEMBLER */ diff --git a/gas/config/tc-xstormy16.c b/gas/config/tc-xstormy16.c index f00a866..7928634 100644 --- a/gas/config/tc-xstormy16.c +++ b/gas/config/tc-xstormy16.c @@ -1,5 +1,5 @@ /* tc-xstormy16.c -- Assembler for the Sanyo XSTORMY16. - Copyright 2000, 2001, 2002, 2003 Free Software Foundation. + Copyright 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation. This file is part of GAS, the GNU Assembler. @@ -344,10 +344,10 @@ md_pcrel_from_section (fixP, sec) fixS * fixP; segT sec; { - if (fixP->fx_addsy != (symbolS *) NULL - && (! S_IS_DEFINED (fixP->fx_addsy) - || S_GET_SEGMENT (fixP->fx_addsy) != sec) - || xstormy16_force_relocation (fixP)) + if ((fixP->fx_addsy != (symbolS *) NULL + && (! S_IS_DEFINED (fixP->fx_addsy) + || S_GET_SEGMENT (fixP->fx_addsy) != sec)) + || xstormy16_force_relocation (fixP)) /* The symbol is undefined, or it is defined but not in this section, or the relocation will be relative to this symbol not the section symbol. |