CVS commit: src/external/gpl3/binutils/dist/gas/config

2020-10-19 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Oct 19 12:47:53 UTC 2020

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-aarch64.c

Log Message:
Fix assembling "isb sy" for aarch64{,eb} on LP64BE architectures.
Cherry-picked from upstream:

https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=05cfb0d8cc9b7f8676f5ae55a93642f091d5405f;hp=0ec992e6647c00fc234cdf4c11732b6711b024af

Now, working kernel can be self-built on aarch64eb.

Thanks to ryo@ for fixing and upstreaming this!


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.6 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/tc-aarch64.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-aarch64.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-aarch64.c:1.1.1.6 src/external/gpl3/binutils/dist/gas/config/tc-aarch64.c:1.2
--- src/external/gpl3/binutils/dist/gas/config/tc-aarch64.c:1.1.1.6	Fri Apr  3 23:40:11 2020
+++ src/external/gpl3/binutils/dist/gas/config/tc-aarch64.c	Mon Oct 19 12:47:53 2020
@@ -250,12 +250,6 @@ set_fatal_syntax_error (const char *erro
 typedef struct
 {
   const char *template;
-  unsigned long value;
-} asm_barrier_opt;
-
-typedef struct
-{
-  const char *template;
   uint32_t value;
 } asm_nzcv;
 
@@ -3994,7 +3988,7 @@ static int
 parse_barrier (char **str)
 {
   char *p, *q;
-  const asm_barrier_opt *o;
+  const struct aarch64_name_value_pair *o;
 
   p = q = *str;
   while (ISALPHA (*q))



CVS commit: src/external/gpl3/binutils/dist/gas/config

2020-04-04 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Apr  4 17:25:39 UTC 2020

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-arm.c

Log Message:
Adjust for field rename.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/binutils/dist/gas/config/tc-arm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-arm.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.12 src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.13
--- src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.12	Fri Apr  3 19:48:47 2020
+++ src/external/gpl3/binutils/dist/gas/config/tc-arm.c	Sat Apr  4 13:25:39 2020
@@ -23120,8 +23120,8 @@ check_pred_blocks_finished (void)
 {
   segment_info_type *seginfo = seg_info (sect);
 
-  if (seginfo && seginfo->tc_segment_info_data.current_it.state
-	  == MANUAL_IT_BLOCK)
+  if (seginfo && seginfo->tc_segment_info_data.current_pred.state
+	  == MANUAL_PRED_BLOCK)
 	{
 	  if (now_pred.type == SCALAR_PRED)
 	as_warn (_("section '%s' finished with an open IT block."),



CVS commit: src/external/gpl3/binutils/dist/gas

2017-01-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Jan 11 14:13:05 UTC 2017

Modified Files:
src/external/gpl3/binutils/dist/gas: configure.tgt

Log Message:
Fix merge botch. arm eabi targets now match properly and we get the
right defaults.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/binutils/dist/gas/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/configure.tgt
diff -u src/external/gpl3/binutils/dist/gas/configure.tgt:1.11 src/external/gpl3/binutils/dist/gas/configure.tgt:1.12
--- src/external/gpl3/binutils/dist/gas/configure.tgt:1.11	Wed Oct 26 18:42:55 2016
+++ src/external/gpl3/binutils/dist/gas/configure.tgt	Wed Jan 11 14:13:05 2017
@@ -140,6 +140,8 @@ case ${generic_target} in
   arm-*-phoenix*)			fmt=elf ;;
   arm-*-rtems*)fmt=elf ;;
   arm-*-elf)fmt=elf ;;
+  arm-*-netbsdelf*-*eabihf*)		fmt=elf  em=armnbsdeabihf ;;
+  arm-*-netbsdelf*-*eabi*)		fmt=elf  em=armnbsdeabi ;;
   arm-*-eabi*)fmt=elf em=armeabi ;;
   arm-*-symbianelf*)			fmt=elf em=symbian ;;
   arm-*-kaos*)fmt=elf ;;
@@ -151,8 +153,6 @@ case ${generic_target} in
   arm-*-linux*aout*)			fmt=aout em=linux ;;
   arm-*-linux-*eabi*)			fmt=elf  em=armlinuxeabi ;;
   arm-*-linux-*)			fmt=elf  em=linux ;;
-  arm-*-netbsdelf*-*eabihf*)		fmt=elf  em=armnbsdeabihf ;;
-  arm-*-netbsdelf*-*eabi*)		fmt=elf  em=armnbsdeabi ;;
   arm-*-uclinux*eabi*)			fmt=elf  em=armlinuxeabi ;;
   arm-*-uclinux*)			fmt=elf  em=linux ;;
   arm-*-nacl*)fmt=elf  em=nacl ;;



CVS commit: src/external/gpl3/binutils/dist/gas/config

2016-03-23 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Mar 23 06:59:59 UTC 2016

Modified Files:
src/external/gpl3/binutils/dist/gas/config: obj-elf.c

Log Message:
avoid unused variables.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gas/config/obj-elf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/obj-elf.c
diff -u src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.3 src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.4
--- src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.3	Fri Jan 29 14:42:45 2016
+++ src/external/gpl3/binutils/dist/gas/config/obj-elf.c	Wed Mar 23 06:59:59 2016
@@ -1922,10 +1922,10 @@ obj_elf_type (int ignore ATTRIBUTE_UNUSE
 	   || strcmp (type_name, "10") == 0
 	   || strcmp (type_name, "STT_GNU_IFUNC") == 0)
 {
+#if 0
   const struct elf_backend_data *bed;
 
   bed = get_elf_backend_data (stdoutput);
-#if 0
   if (!(bed->elf_osabi == ELFOSABI_GNU
 	|| bed->elf_osabi == ELFOSABI_FREEBSD
 	/* GNU is still using the default value 0.  */



CVS commit: src/external/gpl3/binutils/dist/gas/config

2016-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 29 17:01:55 UTC 2016

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
try to fix loongson hacks.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.16 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.17
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.16	Fri Jan 29 09:42:45 2016
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Fri Jan 29 12:01:55 2016
@@ -1488,6 +1488,8 @@ enum options
 OPTION_NAN,
 OPTION_ODD_SPREG,
 OPTION_NO_ODD_SPREG,
+OPTION_FIX_LOONGSON2F_BTB,
+OPTION_NO_FIX_LOONGSON2F_BTB,
 OPTION_END_OF_ENUM
   };
 
@@ -1559,6 +1561,8 @@ struct option md_longopts[] =
   {"mno-fix-loongson2f-jump", no_argument, NULL, OPTION_NO_FIX_LOONGSON2F_JUMP},
   {"mfix-loongson2f-nop", no_argument, NULL, OPTION_FIX_LOONGSON2F_NOP},
   {"mno-fix-loongson2f-nop", no_argument, NULL, OPTION_NO_FIX_LOONGSON2F_NOP},
+  {"mfix-loongson2f-btb", no_argument, NULL, OPTION_FIX_LOONGSON2F_BTB},
+  {"mno-fix-loongson2f-btb", no_argument, NULL, OPTION_NO_FIX_LOONGSON2F_BTB},
   {"mfix-vr4120",no_argument, NULL, OPTION_FIX_VR4120},
   {"mno-fix-vr4120", no_argument, NULL, OPTION_NO_FIX_VR4120},
   {"mfix-vr4130",no_argument, NULL, OPTION_FIX_VR4130},
@@ -5596,11 +5600,6 @@ match_save_restore_list_operand (struct 
 		 | (frame_size & 0x0f));
 }
 
-  if (mips_fix_loongson2f)
-fix_loongson2f (ip);
-  if (mips_trap_zero_jump)
-trap_zero_jump (ip);
-
   /* If the branch is itself the target of a branch, we can not swap.
  We cheat on this; all we check for is whether there is a label on
  this instruction.  If there are any branches to anything other than
@@ -6682,6 +6681,11 @@ can_swap_branch_p (struct mips_cl_insn *
   if (mips_opts.mips16 && history[0].fixp[0])
 return FALSE;
 
+  if (mips_fix_loongson2f)
+fix_loongson2f (ip);
+  if (mips_trap_zero_jump)
+trap_zero_jump (ip);
+
   /* If the branch is itself the target of a branch, we can not swap.
  We cheat on this; all we check for is whether there is a label on
  this instruction.  If there are any branches to anything other than
@@ -11011,6 +11015,26 @@ macro (struct mips_cl_insn *ip, char *st
 	macro_build (NULL, ADDRESS_ADD_INSN, "d,v,t", op[0], tempreg, breg);
   break;
 
+case M_JR_S:
+  macro_build_jrpatch (, op[2]);
+  macro_build (NULL, "jr", "s", op[2]);
+  return;	/* didn't modify $at */
+
+case M_J_S:
+  macro_build_jrpatch (, op[2]);
+  macro_build (NULL, "j", "s", op[2]);
+  return;	/* didn't modify $at */
+
+case M_JALR_S:
+  macro_build_jrpatch (, op[2]);
+  macro_build (NULL, "jalr", "s", op[2]);
+  return;	/* didn't modify $at */
+
+case M_JALR_DS:
+  macro_build_jrpatch (, op[2]);
+  macro_build (NULL, "jalr", "d,s", op[0], op[2]);
+  return;	/* didn't modify $at */
+
 case M_MSGSND:
   gas_assert (!mips_opts.micromips);
   macro_build (NULL, "c2", "C", (op[0] << 16) | 0x01);



CVS commit: src/external/gpl3/binutils/dist/gas

2016-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 29 16:23:51 UTC 2016

Modified Files:
src/external/gpl3/binutils/dist/gas: configure.ac

Log Message:
fix bogus == bashism.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/binutils/dist/gas/configure.ac

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/configure.ac
diff -u src/external/gpl3/binutils/dist/gas/configure.ac:1.1.1.1 src/external/gpl3/binutils/dist/gas/configure.ac:1.2
--- src/external/gpl3/binutils/dist/gas/configure.ac:1.1.1.1	Fri Jan 29 07:44:31 2016
+++ src/external/gpl3/binutils/dist/gas/configure.ac	Fri Jan 29 11:23:51 2016
@@ -549,7 +549,7 @@ changequote([,])dnl
 
 done
 
-if test x$ac_default_compressed_debug_sections == xyes ; then
+if test x$ac_default_compressed_debug_sections = xyes ; then
   AC_DEFINE(DEFAULT_FLAG_COMPRESS_DEBUG, 1, [Define if you want compressed debug sections by default.])
 fi
 



CVS commit: src/external/gpl3/binutils/dist/gas

2016-01-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Jan 29 16:24:00 UTC 2016

Modified Files:
src/external/gpl3/binutils/dist/gas: configure

Log Message:
fix bogus == bashism.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gas/configure

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/configure
diff -u src/external/gpl3/binutils/dist/gas/configure:1.3 src/external/gpl3/binutils/dist/gas/configure:1.4
--- src/external/gpl3/binutils/dist/gas/configure:1.3	Fri Jan 29 09:42:44 2016
+++ src/external/gpl3/binutils/dist/gas/configure	Fri Jan 29 11:24:00 2016
@@ -12505,7 +12505,7 @@ _ACEOF
 
 done
 
-if test x$ac_default_compressed_debug_sections == xyes ; then
+if test x$ac_default_compressed_debug_sections = xyes ; then
 
 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
 



CVS commit: src/external/gpl3/binutils/dist/gas/config

2015-05-29 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri May 29 22:18:51 UTC 2015

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
Fix a bug where the octeon+ saa/saad instructions think they are using the AT
register when they actually aren't.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.14 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.15
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.14	Tue Dec 10 18:15:43 2013
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Fri May 29 22:18:51 2015
@@ -9235,18 +9235,28 @@ macro (struct mips_cl_insn *ip)
 
 	
 case M_SAA_AB:
-  ab = 1;
+  ab = (offset_expr.X_op != O_constant || offset_expr.X_add_number != 0);
 case M_SAA_OB:
   s = saa;
   off0 = 1;
   fmt = t,(b);
+  if (!ab)
+	{
+	  tempreg = AT;
+	  goto ld_noat;
+	}
   goto ld_st;
 case M_SAAD_AB:
-  ab = 1;
+  ab = (offset_expr.X_op != O_constant || offset_expr.X_add_number != 0);
 case M_SAAD_OB:
   s = saad;
   off0 = 1;
   fmt = t,(b);
+  if (!ab)
+	{
+	  tempreg = AT;
+	  goto ld_noat;
+	}
   goto ld_st;
 
/* New code added to support COPZ instructions.



CVS commit: src/external/gpl3/binutils/dist/gas/config

2014-11-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Nov 20 21:44:56 UTC 2014

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-arm.c

Log Message:
Merge upstream d840c081f8082e8b9e63fead5306643975a97bb3 to fix
UB as seen by a clang compiled as.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/binutils/dist/gas/config/tc-arm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-arm.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.6 src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.7
--- src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.6	Sun Sep 29 14:03:30 2013
+++ src/external/gpl3/binutils/dist/gas/config/tc-arm.c	Thu Nov 20 21:44:56 2014
@@ -6936,7 +6936,7 @@ parse_operands (char *str, const unsigne
 
 /* Functions for operand encoding.  ARM, then Thumb.  */
 
-#define rotate_left(v, n) (v  n | v  (32 - n))
+#define rotate_left(v, n) (v  (n  31) | v  ((32 - n)  31))
 
 /* If VAL can be encoded in the immediate field of an ARM instruction,
return the encoded form.  Otherwise, return FAIL.  */



CVS commit: src/external/gpl3/binutils/dist/gas/config

2014-10-11 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Oct 11 20:50:59 UTC 2014

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-riscv.c

Log Message:
this doesn't need execinfo.h, which doesn't exist on older hosts.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/tc-riscv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-riscv.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-riscv.c:1.1 src/external/gpl3/binutils/dist/gas/config/tc-riscv.c:1.2
--- src/external/gpl3/binutils/dist/gas/config/tc-riscv.c:1.1	Fri Sep 19 17:19:53 2014
+++ src/external/gpl3/binutils/dist/gas/config/tc-riscv.c	Sat Oct 11 20:50:59 2014
@@ -30,7 +30,6 @@
 #include dwarf2dbg.h
 #include dw2gencfi.h
 
-#include execinfo.h
 #include stdint.h
 
 #ifdef DEBUG



CVS commit: src/external/gpl3/binutils/dist/gas/config

2014-08-25 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Mon Aug 25 20:34:36 UTC 2014

Modified Files:
src/external/gpl3/binutils/dist/gas/config: obj-elf.c

Log Message:
Allow creation of indirection functions on all platforms, not just GNU
and FreeBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/obj-elf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/obj-elf.c
diff -u src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.1.1.3 src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.2
--- src/external/gpl3/binutils/dist/gas/config/obj-elf.c:1.1.1.3	Sun Sep 29 13:41:19 2013
+++ src/external/gpl3/binutils/dist/gas/config/obj-elf.c	Mon Aug 25 20:34:36 2014
@@ -1705,12 +1705,14 @@ obj_elf_type (int ignore ATTRIBUTE_UNUSE
   const struct elf_backend_data *bed;
 
   bed = get_elf_backend_data (stdoutput);
+#if 0
   if (!(bed-elf_osabi == ELFOSABI_GNU
 	|| bed-elf_osabi == ELFOSABI_FREEBSD
 	/* GNU is still using the default value 0.  */
 	|| bed-elf_osabi == ELFOSABI_NONE))
 	as_bad (_(symbol type \%s\ is supported only by GNU and FreeBSD targets),
 		type_name);
+#endif
   type = BSF_FUNCTION | BSF_GNU_INDIRECT_FUNCTION;
 }
   else if (strcmp (type_name, gnu_unique_object) == 0)



CVS commit: src/external/gpl3/binutils/dist/gas/config

2014-03-25 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Mar 25 16:17:33 UTC 2014

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-vax.c

Log Message:
Bias the cfi pc expr by nbytes since vax pcrel are relative to end of the
relocation, not the beginning.  By adding the size of relocation, it will
become relative to the start of the relocation.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/binutils/dist/gas/config/tc-vax.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-vax.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.7 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.8
--- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.7	Tue Mar 18 23:41:36 2014
+++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c	Tue Mar 25 16:17:33 2014
@@ -3599,9 +3599,10 @@ tc_vax_regname_to_dw2regnum (char *regna
 }
 
 void
-vax_cfi_emit_pcrel_expr (expressionS *exp, unsigned int nbytes)
+vax_cfi_emit_pcrel_expr (expressionS *expP, unsigned int nbytes)
 {
   vax_cons_special_reloc = pcrel;
-  emit_expr (exp, nbytes);
+  expP-X_add_number += nbytes;
+  emit_expr (expP, nbytes);
   vax_cons_special_reloc = NULL;
 }



CVS commit: src/external/gpl3/binutils/dist/gas/config

2014-03-18 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Mar 18 23:41:36 UTC 2014

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-vax.c tc-vax.h

Log Message:
Add support for the .cfi pseudo-ops for VAX.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/binutils/dist/gas/config/tc-vax.c
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gas/config/tc-vax.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-vax.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.6 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.7
--- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.6	Tue Jul 17 20:29:44 2012
+++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c	Tue Mar 18 23:41:36 2014
@@ -24,6 +24,7 @@
 
 #include vax-inst.h
 #include obstack.h		/* For FRAG_APPEND_1_CHAR macro in frags.h */
+#include dw2gencfi.h
 #include subsegs.h
 #include safe-ctype.h
 
@@ -3570,3 +3571,37 @@ md_atof (int type, char * litP, int * si
 {
   return vax_md_atof (type, litP, sizeP);
 }
+
+void
+vax_cfi_frame_initial_instructions (void)
+{
+  cfi_add_CFA_def_cfa (14, 0);
+}
+
+int
+tc_vax_regname_to_dw2regnum (char *regname)
+{
+  unsigned int i;
+  static const struct { char *name; int dw2regnum; } regnames[] =
+{
+  { r0,   0 }, { r1,  1 }, { r2,   2 }, { r3,   3 },
+  { r4,   4 }, { r5,  5 }, { r6,   6 }, { r7,   7 },
+  { r8,   8 }, { r9,  9 }, { r10, 10 }, { r11, 11 },
+  { ap,  12 }, { fp, 13 }, { sp,  14 }, { pc,  15 },
+  { psw, 16 },
+};
+
+  for (i = 0; i  ARRAY_SIZE (regnames); ++i)
+if (strcmp (regnames[i].name, regname) == 0)
+  return regnames[i].dw2regnum;
+
+  return -1;
+}
+
+void
+vax_cfi_emit_pcrel_expr (expressionS *exp, unsigned int nbytes)
+{
+  vax_cons_special_reloc = pcrel;
+  emit_expr (exp, nbytes);
+  vax_cons_special_reloc = NULL;
+}

Index: src/external/gpl3/binutils/dist/gas/config/tc-vax.h
diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.h:1.3 src/external/gpl3/binutils/dist/gas/config/tc-vax.h:1.4
--- src/external/gpl3/binutils/dist/gas/config/tc-vax.h:1.3	Thu Apr 14 07:49:48 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-vax.h	Tue Mar 18 23:41:36 2014
@@ -71,9 +71,17 @@ extern const struct relax_type md_relax_
 		 == S_GET_SEGMENT ((FIX)-fx_addsy)))	\
 	 || S_IS_LOCAL ((FIX)-fx_addsy)))
 
-/*
- * Local Variables:
- * comment-column: 0
- * fill-column: 131
- * End:
- */
+#define TARGET_USE_CFIPOP 1
+
+#define tc_cfi_frame_initial_instructions vax_cfi_frame_initial_instructions
+extern void vax_cfi_frame_initial_instructions (void);
+
+#define tc_regname_to_dw2regnum tc_vax_regname_to_dw2regnum
+extern int tc_vax_regname_to_dw2regnum (char *);
+
+#define tc_cfi_emit_pcrel_expr vax_cfi_emit_pcrel_expr
+extern void vax_cfi_emit_pcrel_expr (expressionS *, unsigned int);
+
+#define DWARF2_LINE_MIN_INSN_LENGTH 1
+#define DWARF2_DEFAULT_RETURN_COLUMN15
+#define DWARF2_CIE_DATA_ALIGNMENT   -4



CVS commit: src/external/gpl3/binutils/dist/gas/config

2013-12-10 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Tue Dec 10 18:15:43 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
Fix bad cut'n'paste in previous commit.
This should fix the remaining loogson build issues.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.13 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.14
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.13	Thu Nov 28 22:28:30 2013
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Tue Dec 10 18:15:43 2013
@@ -4849,7 +4849,7 @@ macro_build_jrpatch (expressionS *ep, un
   }
   if (mips_relax.sequence != 1) {
 mips_macro_warning.sizes[1] -= 2 * 4;
-mips_macro_warning.insns[0] -= 2;
+mips_macro_warning.insns[1] -= 2;
   }
 }
 



CVS commit: src/external/gpl3/binutils/dist/gas/config

2013-11-28 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Thu Nov 28 22:28:30 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
update for new binutils code our local patch to avoid warnings when macro are
used for loongson2f workarounds. Should fix mips64el kernel builds.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.12 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.13
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.12	Sun Sep 29 20:13:42 2013
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Thu Nov 28 22:28:30 2013
@@ -3700,10 +3700,14 @@ fix_loongson2f_jump (struct mips_cl_insn
   macro_build (NULL, and, d,v,t, sreg, sreg, ATREG);
   /* Hide these three instructions to avoid getting a ``macro expanded into
  multiple instructions'' warning. */
-  if (mips_relax.sequence != 2)
+  if (mips_relax.sequence != 2) {
 mips_macro_warning.sizes[0] -= 3 * 4;
-  if (mips_relax.sequence != 1)
+mips_macro_warning.insns[0] -= 3;
+  }
+  if (mips_relax.sequence != 1) {
 mips_macro_warning.sizes[1] -= 3 * 4;
+mips_macro_warning.insns[1] -= 3;
+  }
 }
 }
 
@@ -4839,10 +4843,14 @@ macro_build_jrpatch (expressionS *ep, un
 
   /* Hide these two instructions to avoid getting a ``macro expanded into
  multiple instructions'' warning. */
-  if (mips_relax.sequence != 2)
+  if (mips_relax.sequence != 2) {
 mips_macro_warning.sizes[0] -= 2 * 4;
-  if (mips_relax.sequence != 1)
+mips_macro_warning.insns[0] -= 2;
+  }
+  if (mips_relax.sequence != 1) {
 mips_macro_warning.sizes[1] -= 2 * 4;
+mips_macro_warning.insns[0] -= 2;
+  }
 }
 
 /* Build an instruction created by a macro expansion.  This is passed



CVS commit: src/external/gpl3/binutils/dist/gas/config

2013-10-01 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue Oct  1 10:06:18 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/gas/config: te-armnbsd.h

Log Message:
Default to ARM_ARCH_V4.

Minimum processor for all arm ports is really StrongARM and has been for
sometime.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/te-armnbsd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/te-armnbsd.h
diff -u src/external/gpl3/binutils/dist/gas/config/te-armnbsd.h:1.1 src/external/gpl3/binutils/dist/gas/config/te-armnbsd.h:1.2
--- src/external/gpl3/binutils/dist/gas/config/te-armnbsd.h:1.1	Mon Sep 30 16:16:31 2013
+++ src/external/gpl3/binutils/dist/gas/config/te-armnbsd.h	Tue Oct  1 10:06:17 2013
@@ -19,4 +19,4 @@
 
 #include te-nbsd.h
 
-#define CPU_DEFAULT ARM_ARCH_V3
+#define CPU_DEFAULT ARM_ARCH_V4



CVS commit: src/external/gpl3/binutils/dist/gas

2013-09-30 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Sep 30 16:16:31 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/gas: configure.tgt
Added Files:
src/external/gpl3/binutils/dist/gas/config: te-armnbsd.h

Log Message:
Even though the world is moving to earm provide a CPU_DEFAULT for arm
targets.

This stops the Warning: swp{b} use is obsoleted for ARMv8 and later
messages and probably others.

Discussed with matt@


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/binutils/dist/gas/configure.tgt
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/binutils/dist/gas/config/te-armnbsd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/configure.tgt
diff -u src/external/gpl3/binutils/dist/gas/configure.tgt:1.5 src/external/gpl3/binutils/dist/gas/configure.tgt:1.6
--- src/external/gpl3/binutils/dist/gas/configure.tgt:1.5	Sun Sep 29 14:03:30 2013
+++ src/external/gpl3/binutils/dist/gas/configure.tgt	Mon Sep 30 16:16:31 2013
@@ -126,8 +126,8 @@ case ${generic_target} in
   arm-*-uclinux*eabi*)			fmt=elf  em=armlinuxeabi ;;
   arm-*-uclinux*)			fmt=elf  em=linux ;;
   arm-*-nacl*)fmt=elf  em=nacl ;;
-  arm-*-netbsdelf*)			fmt=elf  em=nbsd ;;
-  arm-*-*n*bsd*)			fmt=aout em=nbsd ;;
+  arm-*-netbsdelf*)			fmt=elf  em=armnbsd ;;
+  arm-*-*n*bsd*)			fmt=aout em=armnbsd ;;
   arm-*-nto*)fmt=elf ;;
   arm-epoc-pe)fmt=coff em=epoc-pe ;;
   arm-wince-pe | arm-*-wince | arm*-*-mingw32ce* | arm*-*-cegcc*)

Added files:

Index: src/external/gpl3/binutils/dist/gas/config/te-armnbsd.h
diff -u /dev/null src/external/gpl3/binutils/dist/gas/config/te-armnbsd.h:1.1
--- /dev/null	Mon Sep 30 16:16:31 2013
+++ src/external/gpl3/binutils/dist/gas/config/te-armnbsd.h	Mon Sep 30 16:16:31 2013
@@ -0,0 +1,22 @@
+/* Copyright 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
+
+   This file is part of GAS, the GNU Assembler.
+
+   GAS is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 3,
+   or (at your option) any later version.
+
+   GAS is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
+   the GNU General Public License for more details.
+
+   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
+   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
+   02110-1301, USA.  */
+
+#include te-nbsd.h
+
+#define CPU_DEFAULT ARM_ARCH_V3



CVS commit: src/external/gpl3/binutils/dist/gas/config

2013-09-29 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Sep 29 20:13:42 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
Fix trap_zero_jump for new binutils.

XXX someone who really understand this should check it.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.11 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.12
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.11	Sun Sep 29 14:03:30 2013
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Sun Sep 29 20:13:42 2013
@@ -3644,7 +3644,7 @@ trap_zero_jump (struct mips_cl_insn * ip
   if (mips_opts.warn_about_macros)
 return;
 
-  sreg = EXTRACT_OPERAND (RS, *ip);
+  sreg = EXTRACT_OPERAND (0, RS, *ip);
   if (mips_opts.isa == ISA_MIPS32
   || mips_opts.isa == ISA_MIPS32R2
   || mips_opts.isa == ISA_MIPS64



CVS commit: src/external/gpl3/binutils/dist/gas/config

2013-08-19 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Aug 19 22:23:12 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-arm.c

Log Message:
Add cortex-a7


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/binutils/dist/gas/config/tc-arm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-arm.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.4 src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.5
--- src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.4	Sat Oct  1 19:25:24 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-arm.c	Mon Aug 19 22:23:12 2013
@@ -22556,6 +22556,9 @@ static const struct arm_cpu_option_table
   {arm1176jzf-s,	ARM_ARCH_V6ZK,	 FPU_ARCH_VFP_V2, NULL},
   {cortex-a5,		ARM_ARCH_V7A_MP_SEC, 
 	 FPU_NONE,	  Cortex-A5},
+  {cortex-a7,	ARM_ARCH_V7A_IDIV_MP_SEC_VIRT,
+	 FPU_ARCH_NEON_VFP_V4,
+  Cortex-A7},
   {cortex-a8,		ARM_ARCH_V7A_SEC,
 	 ARM_FEATURE (0, FPU_VFP_V3
 | FPU_NEON_EXT_V1),



CVS commit: src/external/gpl3/binutils/dist/gas/config

2013-07-19 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jul 19 15:57:18 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-m68k.c

Log Message:
Allow stripping of the m before m5... so that it can match coldfire cpus.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gas/config/tc-m68k.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-m68k.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-m68k.c:1.3 src/external/gpl3/binutils/dist/gas/config/tc-m68k.c:1.4
--- src/external/gpl3/binutils/dist/gas/config/tc-m68k.c:1.3	Sun Sep 25 04:32:37 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-m68k.c	Fri Jul 19 15:57:18 2013
@@ -7420,12 +7420,12 @@ m68k_lookup_cpu (const char *arg, const 
 	}
 }
   
-  /* Remove 'm' or 'mc' prefix from 68k variants.  */
+  /* Remove 'm' or 'mc' prefix from 68k or coldfire variants.  */
   if (allow_m)
 {
   if (arg[0] == 'm')
 	{
-	  if (arg[1] == '6')
+	  if (arg[1] == '6' || arg[1] == '5')
 	arg += 1;
 	  else if (arg[1] == 'c'   arg[2] == '6')
 	arg += 2;



CVS commit: src/external/gpl3/binutils/dist/gas

2013-02-04 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Feb  4 18:42:31 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/gas: configure.tgt
Added Files:
src/external/gpl3/binutils/dist/gas/config: te-armnetbsdeabi.h

Log Message:
Add a match for arm*--netbsdelf-eabi* and default that EABI with a VFP FPU
and ARCH_ARM_V5TEJ cpu.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/binutils/dist/gas/configure.tgt
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/binutils/dist/gas/config/te-armnetbsdeabi.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/configure.tgt
diff -u src/external/gpl3/binutils/dist/gas/configure.tgt:1.1.1.2 src/external/gpl3/binutils/dist/gas/configure.tgt:1.2
--- src/external/gpl3/binutils/dist/gas/configure.tgt:1.1.1.2	Sat Sep 24 22:23:35 2011
+++ src/external/gpl3/binutils/dist/gas/configure.tgt	Mon Feb  4 18:42:30 2013
@@ -118,6 +118,7 @@ case ${generic_target} in
   arm-*-linux-*)			fmt=elf  em=linux ;;
   arm-*-uclinux*eabi*)			fmt=elf  em=armlinuxeabi ;;
   arm-*-uclinux*)			fmt=elf  em=linux ;;
+  arm-*-netbsdelf-*eabi*)		fmt=elf  em=armnetbsdeabi ;;
   arm-*-netbsdelf*)			fmt=elf  em=nbsd ;;
   arm-*-*n*bsd*)			fmt=aout em=nbsd ;;
   arm-*-nto*)fmt=elf ;;

Added files:

Index: src/external/gpl3/binutils/dist/gas/config/te-armnetbsdeabi.h
diff -u /dev/null src/external/gpl3/binutils/dist/gas/config/te-armnetbsdeabi.h:1.1
--- /dev/null	Mon Feb  4 18:42:31 2013
+++ src/external/gpl3/binutils/dist/gas/config/te-armnetbsdeabi.h	Mon Feb  4 18:42:31 2013
@@ -0,0 +1,25 @@
+/* Copyright 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
+
+   This file is part of GAS, the GNU Assembler.
+
+   GAS is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 3,
+   or (at your option) any later version.
+
+   GAS is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
+   the GNU General Public License for more details.
+
+   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
+   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
+   02110-1301, USA.  */
+
+#include te-netbsd.h
+
+/* The EABI requires the use of VFP.  */
+#define CPU_DEFAULT ARM_ARCH_V5TEJ
+#define FPU_DEFAULT FPU_ARCH_VFP
+#define EABI_DEFAULT EF_ARM_EABI_VER5



CVS commit: src/external/gpl3/binutils/dist/gas

2013-02-04 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Feb  4 22:38:07 UTC 2013

Modified Files:
src/external/gpl3/binutils/dist/gas: configure.tgt
Added Files:
src/external/gpl3/binutils/dist/gas/config: te-armnbsdeabi.h
te-armnbsdeabihf.h
Removed Files:
src/external/gpl3/binutils/dist/gas/config: te-armnetbsdeabi.h

Log Message:
Move arm-*-netbsdelf-*eabi* to before arm-*-eabi* so it matches properly.
Add arm-*-netbsdelf-*eabihf* which has a VFP V2 by default.
Rename armnetbsdeabi*.h to armnbsdeabi*.h to be consistent with other nbsd
files.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/binutils/dist/gas/configure.tgt
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/binutils/dist/gas/config/te-armnbsdeabi.h \
src/external/gpl3/binutils/dist/gas/config/te-armnbsdeabihf.h
cvs rdiff -u -r1.1 -r0 \
src/external/gpl3/binutils/dist/gas/config/te-armnetbsdeabi.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/configure.tgt
diff -u src/external/gpl3/binutils/dist/gas/configure.tgt:1.2 src/external/gpl3/binutils/dist/gas/configure.tgt:1.3
--- src/external/gpl3/binutils/dist/gas/configure.tgt:1.2	Mon Feb  4 18:42:30 2013
+++ src/external/gpl3/binutils/dist/gas/configure.tgt	Mon Feb  4 22:38:07 2013
@@ -109,6 +109,8 @@ case ${generic_target} in
   arm-*-coff | thumb-*-coff)		fmt=coff ;;
   arm-*-rtems* | thumb-*-rtems*)	fmt=elf ;;
   arm-*-elf | thumb-*-elf)		fmt=elf ;;
+  arm-*-netbsdelf*-*eabihf*)		fmt=elf em=armnbsdeabihf ;;
+  arm-*-netbsdelf*-*eabi*)		fmt=elf em=armnbsdeabi ;;
   arm-*-eabi*)fmt=elf em=armeabi ;;
   arm-*-symbianelf*)			fmt=elf em=symbian ;;
   arm-*-kaos*)fmt=elf ;;
@@ -118,7 +120,6 @@ case ${generic_target} in
   arm-*-linux-*)			fmt=elf  em=linux ;;
   arm-*-uclinux*eabi*)			fmt=elf  em=armlinuxeabi ;;
   arm-*-uclinux*)			fmt=elf  em=linux ;;
-  arm-*-netbsdelf-*eabi*)		fmt=elf  em=armnetbsdeabi ;;
   arm-*-netbsdelf*)			fmt=elf  em=nbsd ;;
   arm-*-*n*bsd*)			fmt=aout em=nbsd ;;
   arm-*-nto*)fmt=elf ;;

Added files:

Index: src/external/gpl3/binutils/dist/gas/config/te-armnbsdeabi.h
diff -u /dev/null src/external/gpl3/binutils/dist/gas/config/te-armnbsdeabi.h:1.1
--- /dev/null	Mon Feb  4 22:38:07 2013
+++ src/external/gpl3/binutils/dist/gas/config/te-armnbsdeabi.h	Mon Feb  4 22:38:07 2013
@@ -0,0 +1,25 @@
+/* Copyright 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
+
+   This file is part of GAS, the GNU Assembler.
+
+   GAS is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 3,
+   or (at your option) any later version.
+
+   GAS is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
+   the GNU General Public License for more details.
+
+   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
+   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
+   02110-1301, USA.  */
+
+#include te-nbsd.h
+
+/* The EABI requires the use of VFP.  */
+#define CPU_DEFAULT ARM_ARCH_V5TEJ
+#define FPU_DEFAULT FPU_ARCH_VFP
+#define EABI_DEFAULT EF_ARM_EABI_VER5
Index: src/external/gpl3/binutils/dist/gas/config/te-armnbsdeabihf.h
diff -u /dev/null src/external/gpl3/binutils/dist/gas/config/te-armnbsdeabihf.h:1.1
--- /dev/null	Mon Feb  4 22:38:07 2013
+++ src/external/gpl3/binutils/dist/gas/config/te-armnbsdeabihf.h	Mon Feb  4 22:38:07 2013
@@ -0,0 +1,25 @@
+/* Copyright 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
+
+   This file is part of GAS, the GNU Assembler.
+
+   GAS is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 3,
+   or (at your option) any later version.
+
+   GAS is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
+   the GNU General Public License for more details.
+
+   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
+   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
+   02110-1301, USA.  */
+
+#include te-nbsd.h
+
+/* The EABI requires the use of VFP.  */
+#define CPU_DEFAULT ARM_ARCH_V5TEJ
+#define FPU_DEFAULT FPU_ARCH_VFP_V2
+#define EABI_DEFAULT EF_ARM_EABI_VER5



CVS commit: src/external/gpl3/binutils/dist/gas/config

2012-07-17 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Jul 17 20:29:45 UTC 2012

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-vax.c

Log Message:
Warn about using a symbol as a displacement in PIC mode.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/binutils/dist/gas/config/tc-vax.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-vax.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.5 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.6
--- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.5	Sun Sep 25 04:32:37 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c	Tue Jul 17 20:29:44 2012
@@ -3301,7 +3301,7 @@ md_assemble (char *instruction_string)
 			  if (flag_want_pic  operandP-vop_mode == 8
  this_add_symbol != NULL)
 			{
-			  as_warn (_(Symbol %s used as immediate operand in PIC mode.),
+			  as_warn (_(Symbol '%s' used as immediate operand in PIC mode.),
    S_GET_NAME (this_add_symbol));
 			}
 #endif
@@ -3377,7 +3377,15 @@ md_assemble (char *instruction_string)
 			  length = 4;
 			}
 			}
+#ifdef OBJ_ELF
+		  if (flag_want_pic  this_add_symbol != NULL)
+		{
+			  as_warn (_(Symbol '%s' used as displacement in PIC mode.),
+			   S_GET_NAME (this_add_symbol));
+		}
+#endif
 		  p = frag_more (1 + length);
+		  know (operandP-vop_reg != 0xf);
 		  know (operandP-vop_reg = 0);
 		  p[0] = operandP-vop_reg
 			| ((at | ?\12\14?\16[length])  4);



CVS commit: src/external/gpl3/binutils/dist/gas/config

2011-10-01 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct  1 19:25:25 UTC 2011

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-arm.c

Log Message:
The arm .arm.atpcs section does not have segment information, so skip it.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gas/config/tc-arm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-arm.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.3 src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.4
--- src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.3	Sun Sep 25 00:32:37 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-arm.c	Sat Oct  1 15:25:24 2011
@@ -16133,12 +16133,16 @@ check_it_blocks_finished (void)
   asection *sect;
 
   for (sect = stdoutput-sections; sect != NULL; sect = sect-next)
-if (seg_info (sect)-tc_segment_info_data.current_it.state
-	== MANUAL_IT_BLOCK)
-  {
-	as_warn (_(section '%s' finished with an open IT block.),
-		 sect-name);
-  }
+{
+  segment_info_type *seginfo = seg_info (sect);
+
+  if (seginfo  seginfo-tc_segment_info_data.current_it.state
+	  == MANUAL_IT_BLOCK)
+{
+	  as_warn (_(section '%s' finished with an open IT block.),
+		   sect-name);
+}
+}
 #else
   if (now_it.state == MANUAL_IT_BLOCK)
 as_warn (_(file finished with an open IT block.));



CVS commit: src/external/gpl3/binutils/dist/gas/config

2011-09-29 Thread Michael Lorenz
Module Name:src
Committed By:   macallan
Date:   Fri Sep 30 01:23:00 UTC 2011

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
put -mfixloongson2f-btb back in the command line options list


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.9 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.10
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.9	Sun Sep 25 09:44:54 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Fri Sep 30 01:23:00 2011
@@ -11417,6 +11417,8 @@ struct option md_longopts[] =
   {mno-fix-loongson2f-jump, no_argument, NULL, OPTION_NO_FIX_LOONGSON2F_JUMP},
   {mfix-loongson2f-nop, no_argument, NULL, OPTION_FIX_LOONGSON2F_NOP},
   {mno-fix-loongson2f-nop, no_argument, NULL, OPTION_NO_FIX_LOONGSON2F_NOP},
+  {mfix-loongson2f-btb, no_argument, NULL, OPTION_FIX_LOONGSON2F_BTB},
+  {mno-fix-loongson2f-btb, no_argument, NULL, OPTION_NO_FIX_LOONGSON2F_BTB},
   {mfix-vr4120,no_argument, NULL, OPTION_FIX_VR4120},
   {mno-fix-vr4120, no_argument, NULL, OPTION_NO_FIX_VR4120},
   {mfix-vr4130,no_argument, NULL, OPTION_FIX_VR4130},



CVS commit: src/external/gpl3/binutils/dist/gas/config

2011-09-25 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Sep 25 09:44:54 UTC 2011

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
add OPTION_FIX_LOONGSON2F_BTB and OPTION_NO_FIX_LOONGSON2F_BTB
options back to the enum.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.8 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.9
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.8	Sun Sep 25 04:32:37 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Sun Sep 25 09:44:54 2011
@@ -11362,6 +11362,8 @@ enum options
 OPTION_NO_PDR,
 OPTION_MVXWORKS_PIC,
 #endif /* OBJ_ELF */
+OPTION_FIX_LOONGSON2F_BTB,
+OPTION_NO_FIX_LOONGSON2F_BTB,
 OPTION_END_OF_ENUM
   };
   



CVS commit: src/external/gpl3/binutils/dist/gas/config

2011-08-29 Thread Manuel Bouyer
Module Name:src
Committed By:   bouyer
Date:   Mon Aug 29 18:30:52 UTC 2011

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
Hide instructions added by -mfix-loongson2f-jump in the same way as
-mfix-loongson2f-btb, to avoid a gas warning macro expanded into
multiple instructions (which cause GDIUM kernel build failure
as it's built with -Wa,-mfix-loongson2f-jump -Wa,--fatal-warnings).


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.6 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.7
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.6	Sat Aug 27 13:19:39 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Mon Aug 29 18:30:52 2011
@@ -2749,6 +2749,12 @@
   ep.X_add_number = 0x;
   macro_build (ep, ori, t,r,i, ATREG, ATREG, BFD_RELOC_LO16);
   macro_build (NULL, and, d,v,t, sreg, sreg, ATREG);
+  /* Hide these three instructions to avoid getting a ``macro expanded into
+ multiple instructions'' warning. */
+  if (mips_relax.sequence != 2)
+mips_macro_warning.sizes[0] -= 3 * 4;
+  if (mips_relax.sequence != 1)
+mips_macro_warning.sizes[1] -= 3 * 4;
 }
 }
 



CVS commit: src/external/gpl3/binutils/dist/gas/config

2011-08-18 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Aug 18 06:32:35 UTC 2011

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
Add a -mtrap-zero-jump option for mips that causes a trap instruction to
fire before a jump to a zero or near zero address.  This can't be used
with MIPS1 kernels since MIPS1 doesn't have a trap instruction (it will
be silently ignored).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.4 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.5
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.4	Tue Aug  2 16:11:16 2011
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Thu Aug 18 06:32:35 2011
@@ -749,6 +749,9 @@
   NUM_FIX_VR4120_CLASSES
 };
 
+/* ...likewise -mtrap-zero-jump.  */
+static bfd_boolean mips_trap_zero_jump;
+
 /* ...likewise -mfix-loongson2f-jump.  */
 static bfd_boolean mips_fix_loongson2f_jump;
 
@@ -2756,6 +2759,35 @@
 fix_loongson2f_jump (ip);
 }
 
+static void
+trap_zero_jump (struct mips_cl_insn * ip)
+{
+  if (strcmp (ip-insn_mo-name, j) == 0
+  || strcmp (ip-insn_mo-name, jr) == 0
+  || strcmp (ip-insn_mo-name, jalr) == 0)
+{
+  int sreg;
+
+  if (mips_opts.warn_about_macros)
+return;
+
+  sreg = EXTRACT_OPERAND (RS, *ip);
+  if (mips_opts.isa == ISA_MIPS32
+  || mips_opts.isa == ISA_MIPS32R2
+  || mips_opts.isa == ISA_MIPS64
+  || mips_opts.isa == ISA_MIPS64R2)  
+	{
+	  expressionS ep;
+	  ep.X_op = O_constant;
+	  ep.X_add_number = 4096;
+	  macro_build (ep, tltiu, s,j, sreg, BFD_RELOC_LO16);
+	}
+  else if (mips_opts.isa != ISA_UNKNOWN
+	mips_opts.isa != ISA_MIPS1)
+	macro_build (NULL, teq, s,t, sreg, 0);
+  }
+}
+
 /* Output an instruction.  IP is the instruction information.
ADDRESS_EXPR is an operand of the instruction to be used with
RELOC_TYPE.  */
@@ -2771,6 +2803,8 @@
 
   if (mips_fix_loongson2f)
 fix_loongson2f (ip);
+  if (mips_trap_zero_jump)
+trap_zero_jump (ip);
 
   /* Mark instruction labels in mips16 mode.  */
   mips16_mark_labels ();
@@ -11336,9 +11370,14 @@
   {msingle-float, no_argument, NULL, OPTION_SINGLE_FLOAT},
   {mdouble-float, no_argument, NULL, OPTION_DOUBLE_FLOAT},
   
+#define OPTION_TRAP_ZERO_JUMP (OPTION_MISC_BASE + 20)
+#define OPTION_NO_TRAP_ZERO_JUMP (OPTION_MISC_BASE + 21)
+  {mtrap-zero-jump, no_argument, NULL, OPTION_TRAP_ZERO_JUMP},
+  {mno-trap-zero-jump, no_argument, NULL, OPTION_NO_TRAP_ZERO_JUMP},
+
   /* ELF-specific options.  */
 #ifdef OBJ_ELF
-#define OPTION_ELF_BASE(OPTION_MISC_BASE + 20)
+#define OPTION_ELF_BASE(OPTION_MISC_BASE + 22)
 #define OPTION_CALL_SHARED (OPTION_ELF_BASE + 0)
   {KPIC,no_argument, NULL, OPTION_CALL_SHARED},
   {call_shared, no_argument, NULL, OPTION_CALL_SHARED},
@@ -11630,6 +11669,14 @@
   mips_opts.sym32 = FALSE;
   break;
 
+case OPTION_TRAP_ZERO_JUMP:
+  mips_trap_zero_jump = TRUE;
+  break;
+
+case OPTION_NO_TRAP_ZERO_JUMP:
+  mips_trap_zero_jump = FALSE;
+  break;
+
 #ifdef OBJ_ELF
   /* When generating ELF code, we permit -KPIC and -call_shared to
 	 select SVR4_PIC, and -non_shared to select no PIC.  This is



CVS commit: src/external/gpl3/binutils/dist/gas/config

2011-08-03 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Aug  3 17:54:52 UTC 2011

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.h

Log Message:
Missing a diff for the loongson2 fixes


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/tc-mips.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.h
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.h:1.1.1.1 src/external/gpl3/binutils/dist/gas/config/tc-mips.h:1.2
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.h:1.1.1.1	Tue Aug 18 09:35:02 2009
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.h	Wed Aug  3 17:54:52 2011
@@ -59,7 +59,7 @@
 extern void mips_handle_align (struct frag *);
 #define HANDLE_ALIGN(fragp)  mips_handle_align (fragp)
 
-#define MAX_MEM_FOR_RS_ALIGN_CODE  (1 + 2)
+#define MAX_MEM_FOR_RS_ALIGN_CODE  (3 + 4)
 
 struct insn_label_list;
 struct mips_segment_info {



CVS commit: src/external/gpl3/binutils/dist/gas/config

2010-12-08 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Dec  9 06:22:03 UTC 2010

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-vax.c

Log Message:
Use ELF_ST_VISIBILITY (S_GET_OTHER( )) instead of a local S_IS_HIDDEN as
suggested by binutils.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/binutils/dist/gas/config/tc-vax.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-vax.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.3 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.4
--- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.3	Mon Dec  6 21:17:00 2010
+++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c	Thu Dec  9 06:22:03 2010
@@ -266,23 +266,6 @@
 
 #define min(a, b)	((a)  (b) ? (a) : (b))
 
-#ifdef OBJ_ELF
-static int
-S_IS_HIDDEN(symbolS *symbolP)
-{
-  asymbol *bfdsym;
-  elf_symbol_type *elfsym;
-
-  bfdsym = symbol_get_bfdsym (symbolP);
-  elfsym = elf_symbol_from (bfd_asymbol_bfd (bfdsym), bfdsym);
-  
-  assert (elfsym);
-
-  return (elfsym-internal_elf_sym.st_other  3) == STV_HIDDEN;
-}
-#endif /* OBJ_ELF */
-
-
 void
 md_number_to_chars (char con[], valueT value, int nbytes)
 {
@@ -410,7 +393,7 @@
 	   fragP-fr_symbol != NULL
 	   flag_want_pic
 #ifdef OBJ_ELF
-	   !S_IS_HIDDEN (fragP-fr_symbol)
+	   ELF_ST_VISIBILITY (S_GET_OTHER (fragP-fr_symbol)) != STV_HIDDEN
 #endif
 	   (!S_IS_DEFINED (fragP-fr_symbol)
 	  || S_IS_WEAK (fragP-fr_symbol)



CVS commit: src/external/gpl3/binutils/dist/gas/config

2010-12-06 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Dec  6 21:17:01 UTC 2010

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-vax.c

Log Message:
Add a private now S_IS_HIDDEN(symbol) so gas deal with hidden symbols
correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/binutils/dist/gas/config/tc-vax.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-vax.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.2 src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.3
--- src/external/gpl3/binutils/dist/gas/config/tc-vax.c:1.2	Wed Aug 19 07:19:31 2009
+++ src/external/gpl3/binutils/dist/gas/config/tc-vax.c	Mon Dec  6 21:17:00 2010
@@ -266,6 +266,23 @@
 
 #define min(a, b)	((a)  (b) ? (a) : (b))
 
+#ifdef OBJ_ELF
+static int
+S_IS_HIDDEN(symbolS *symbolP)
+{
+  asymbol *bfdsym;
+  elf_symbol_type *elfsym;
+
+  bfdsym = symbol_get_bfdsym (symbolP);
+  elfsym = elf_symbol_from (bfd_asymbol_bfd (bfdsym), bfdsym);
+  
+  assert (elfsym);
+
+  return (elfsym-internal_elf_sym.st_other  3) == STV_HIDDEN;
+}
+#endif /* OBJ_ELF */
+
+
 void
 md_number_to_chars (char con[], valueT value, int nbytes)
 {
@@ -392,6 +409,9 @@
 	   (PLT_symbol == NULL || fragP-fr_symbol != PLT_symbol)
 	   fragP-fr_symbol != NULL
 	   flag_want_pic
+#ifdef OBJ_ELF
+	   !S_IS_HIDDEN (fragP-fr_symbol)
+#endif
 	   (!S_IS_DEFINED (fragP-fr_symbol)
 	  || S_IS_WEAK (fragP-fr_symbol)
 	  || S_IS_EXTERNAL (fragP-fr_symbol)))



CVS commit: src/external/gpl3/binutils/dist/gas

2009-12-31 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jan  1 06:12:55 UTC 2010

Modified Files:
src/external/gpl3/binutils/dist/gas: write.c

Log Message:
Don't allow a symbol + offset in a merge section to translated to a
.section + offset reference if offset is negative.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/binutils/dist/gas/write.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/write.c
diff -u src/external/gpl3/binutils/dist/gas/write.c:1.2 src/external/gpl3/binutils/dist/gas/write.c:1.3
--- src/external/gpl3/binutils/dist/gas/write.c:1.2	Sun Nov 15 10:25:16 2009
+++ src/external/gpl3/binutils/dist/gas/write.c	Fri Jan  1 06:12:55 2010
@@ -822,10 +822,11 @@
 	  }
 
 	/* Never adjust a reloc against local symbol in a merge section with
-	   a non-zero addend if the addend would place the relocation otside
-	   the section's limits.  */
+	   a non-negative addend or if the addend would place the relocation
+	   outside the section's limits.  */
 	if ((symsec-flags  SEC_MERGE) != 0
-	 (S_GET_VALUE(sym) + fixp-fx_offset = bfd_get_section_size(symsec)
+	 (S_GET_VALUE(sym) + fixp-fx_offset  S_GET_VALUE(sym)
+		|| S_GET_VALUE(sym) + fixp-fx_offset = bfd_get_section_size(symsec)
 	|| fixp-fx_subsy != NULL))
 	  continue;
 



CVS commit: src/external/gpl3/binutils/dist/gas/config

2009-11-15 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Nov 15 20:10:11 UTC 2009

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-arm.c

Log Message:
Pull in fixes from upstream revision 1.362 to avoid string formatting
warnings.  Fixes build with newer GCC, like the one in Snow Leopard.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/tc-arm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-arm.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.1.1.1 src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.2
--- src/external/gpl3/binutils/dist/gas/config/tc-arm.c:1.1.1.1	Tue Aug 18 09:34:02 2009
+++ src/external/gpl3/binutils/dist/gas/config/tc-arm.c	Sun Nov 15 20:10:11 2009
@@ -3456,7 +3456,7 @@
 
   if (reg == FAIL)
 	{
-	  as_bad (_(reg_expected_msgs[REG_TYPE_MMXWR]));
+	  as_bad (%s, _(reg_expected_msgs[REG_TYPE_MMXWR]));
 	  goto error;
 	}
 
@@ -3470,7 +3470,7 @@
 	  hi_reg = arm_reg_parse (input_line_pointer, REG_TYPE_MMXWR);
 	  if (hi_reg == FAIL)
 	{
-	  as_bad (_(reg_expected_msgs[REG_TYPE_MMXWR]));
+	  as_bad (%s, _(reg_expected_msgs[REG_TYPE_MMXWR]));
 	  goto error;
 	}
 	  else if (reg = hi_reg)
@@ -3588,7 +3588,7 @@
 
   if (reg == FAIL)
 	{
-	  as_bad (_(reg_expected_msgs[REG_TYPE_MMXWCG]));
+	  as_bad (%s, _(reg_expected_msgs[REG_TYPE_MMXWCG]));
 	  goto error;
 	}
 
@@ -3603,7 +3603,7 @@
 	  hi_reg = arm_reg_parse (input_line_pointer, REG_TYPE_MMXWCG);
 	  if (hi_reg == FAIL)
 	{
-	  as_bad (_(reg_expected_msgs[REG_TYPE_MMXWCG]));
+	  as_bad (%s, _(reg_expected_msgs[REG_TYPE_MMXWCG]));
 	  goto error;
 	}
 	  else if (reg = hi_reg)
@@ -3709,7 +3709,7 @@
   reg = arm_reg_parse (input_line_pointer, REG_TYPE_RN);
   if (reg == FAIL)
 {
-  as_bad (_(reg_expected_msgs[REG_TYPE_RN]));
+  as_bad (%s, _(reg_expected_msgs[REG_TYPE_RN]));
   ignore_rest_of_line ();
   return;
 }



CVS commit: src/external/gpl3/binutils/dist/gas/config

2009-11-15 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Nov 15 19:51:50 UTC 2009

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-alpha.c

Log Message:
Pull in fixes from upstream revision 1.83 to avoid string formatting
warnings.  Fixes build with newer GCC, like the one in Snow Leopard.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/tc-alpha.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-alpha.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-alpha.c:1.1.1.1 src/external/gpl3/binutils/dist/gas/config/tc-alpha.c:1.2
--- src/external/gpl3/binutils/dist/gas/config/tc-alpha.c:1.1.1.1	Tue Aug 18 09:33:48 2009
+++ src/external/gpl3/binutils/dist/gas/config/tc-alpha.c	Sun Nov 15 19:51:49 2009
@@ -549,7 +549,7 @@
   strcpy (info-string, buffer);
   errmsg = hash_insert (alpha_literal_hash, info-string, (void *) info);
   if (errmsg)
-	as_fatal (errmsg);
+	as_fatal (%s, errmsg);
 }
 
   return info;
@@ -1829,7 +1829,7 @@
 
   insn = (*operand-insert) (insn, val, errmsg);
   if (errmsg)
-	as_warn (errmsg);
+	as_warn (%s, errmsg);
 }
   else
 insn |= ((val  ((1  operand-bits) - 1))  operand-shift);



CVS commit: src/external/gpl3/binutils/dist/gas/config

2009-11-15 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Nov 15 20:56:40 UTC 2009

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-m68k.c

Log Message:
Pull in fixes from upstream revision 1.108 to avoid string formatting
warnings.  Fixes build with newer GCC, like the one in Snow Leopard.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/tc-m68k.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-m68k.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-m68k.c:1.1.1.1 src/external/gpl3/binutils/dist/gas/config/tc-m68k.c:1.2
--- src/external/gpl3/binutils/dist/gas/config/tc-m68k.c:1.1.1.1	Tue Aug 18 09:34:48 2009
+++ src/external/gpl3/binutils/dist/gas/config/tc-m68k.c	Sun Nov 15 20:56:40 2009
@@ -7545,7 +7545,7 @@
 {
   if (i)
 	fprintf (stream,  | );
-  fprintf (stream, m68k_archs[i].name);
+  fprintf (stream, %s, m68k_archs[i].name);
 }
   fprintf (stream, \n);
 
@@ -7554,7 +7554,7 @@
 {
   if (i)
 	fprintf (stream,  | );
-  fprintf (stream, m68k_cpus[i].name);
+  fprintf (stream, %s, m68k_cpus[i].name);
 }
   fprintf (stream, _(\n));
 }



CVS commit: src/external/gpl3/binutils/dist/gas/config

2009-11-15 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Nov 15 21:57:49 UTC 2009

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-mips.c

Log Message:
Pull in fixes from upstream revision 1.406 to avoid string formatting
warnings.  Fixes build with newer GCC, like the one in Snow Leopard.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/tc-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-mips.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.1.1.1 src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.2
--- src/external/gpl3/binutils/dist/gas/config/tc-mips.c:1.1.1.1	Tue Aug 18 09:35:02 2009
+++ src/external/gpl3/binutils/dist/gas/config/tc-mips.c	Sun Nov 15 21:57:49 2009
@@ -3456,7 +3456,7 @@
 	 warning now.  */
 	  const char *msg = macro_warning (subtype);
 	  if (msg != 0)
-	as_warn (msg);
+	as_warn (%s, msg);
 	}
   else
 	{
@@ -14449,7 +14449,7 @@
 	{
 	  const char *msg = macro_warning (fragp-fr_subtype);
 	  if (msg != 0)
-	as_warn_where (fragp-fr_file, fragp-fr_line, msg);
+	as_warn_where (fragp-fr_file, fragp-fr_line, %s, msg);
 	}
 
   /* Go through all the fixups for the first sequence.  Disable them



CVS commit: src/external/gpl3/binutils/dist/gas/config

2009-11-15 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Nov 15 22:17:03 UTC 2009

Modified Files:
src/external/gpl3/binutils/dist/gas/config: tc-ppc.c

Log Message:
Pull in fixes from upstream revision 1.146 to avoid string formatting
warnings.  Fixes build with newer GCC, like the one in Snow Leopard.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/binutils/dist/gas/config/tc-ppc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/config/tc-ppc.c
diff -u src/external/gpl3/binutils/dist/gas/config/tc-ppc.c:1.1.1.1 src/external/gpl3/binutils/dist/gas/config/tc-ppc.c:1.2
--- src/external/gpl3/binutils/dist/gas/config/tc-ppc.c:1.1.1.1	Tue Aug 18 09:35:16 2009
+++ src/external/gpl3/binutils/dist/gas/config/tc-ppc.c	Sun Nov 15 22:17:03 2009
@@ -1656,7 +1656,7 @@
   errmsg = NULL;
   insn = (*operand-insert) (insn, (long) val, ppc_cpu, errmsg);
   if (errmsg != (const char *) NULL)
-	as_bad_where (file, line, errmsg);
+	as_bad_where (file, line, %s, errmsg);
 }
   else
 insn |= ((long) val  operand-bitm)  operand-shift;
@@ -2387,7 +2387,7 @@
 	{
 	  insn = (*operand-insert) (insn, 0L, ppc_cpu, errmsg);
 	  if (errmsg != (const char *) NULL)
-	as_bad (errmsg);
+	as_bad (%s, errmsg);
 	  continue;
 	}
 
@@ -2400,7 +2400,7 @@
 	{
 	  insn = (*operand-insert) (insn, 0L, ppc_cpu, errmsg);
 	  if (errmsg != (const char *) NULL)
-		as_bad (errmsg);
+		as_bad (%s, errmsg);
 	}
 	  if ((operand-flags  PPC_OPERAND_NEXT) != 0)
 	next_opindex = *opindex_ptr + 1;



CVS commit: src/external/gpl3/binutils/dist/gas/doc

2009-09-23 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Wed Sep 23 19:53:30 UTC 2009

Modified Files:
src/external/gpl3/binutils/dist/gas/doc: c-mips.texi

Log Message:
Fix index entries that are intended to index .set singlefloat and
.set doublefloat, but were not edited after copy-paste.

I noticed this because compared to prebuilt as.info 1) on NetBSD index
entries are collated differently; 2) for some duplicate index entries
there are no additional foo n entries in the final output and (b/c
of #1 I guess) we pick a different one.

For the record, the other duplicate entry is in c-tic54x.texi where
both struct and union directive descriptions have:

  @cindex @code{tag} directive, TIC54X

Prebuilt file only lists the first occurence in the generated index
and we list only the second.

The MIPS false duplicate is easy to fix, but I'm too lazy to debug
makefino to figure out why the second, real duplicate is lost.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
src/external/gpl3/binutils/dist/gas/doc/c-mips.texi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/doc/c-mips.texi
diff -u src/external/gpl3/binutils/dist/gas/doc/c-mips.texi:1.1.1.1 src/external/gpl3/binutils/dist/gas/doc/c-mips.texi:1.2
--- src/external/gpl3/binutils/dist/gas/doc/c-mips.texi:1.1.1.1	Tue Aug 18 09:36:00 2009
+++ src/external/gpl3/binutils/dist/gas/doc/c-mips.texi	Wed Sep 23 19:53:30 2009
@@ -606,8 +606,8 @@
 (@samp{-msoft-float} and @samp{-mhard-float}).
 
 @cindex Disable single-precision floating-point operations
-...@kindex @code{.set softfloat}
-...@kindex @code{.set hardfloat}
+...@kindex @code{.set singlefloat}
+...@kindex @code{.set doublefloat}
 The directives @code{.set singlefloat} and @code{.set doublefloat}
 provide finer control of disabling and enabling double-precision
 float-point operations.  These directives always override the default



CVS commit: src/external/gpl3/binutils/dist/gas

2009-09-11 Thread Matthias Scheler
Module Name:src
Committed By:   tron
Date:   Fri Sep 11 10:41:43 UTC 2009

Modified Files:
src/external/gpl3/binutils/dist/gas: remap.c

Log Message:
Avoid using alloca(3) to unbreak SSP builds.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/binutils/dist/gas/remap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/remap.c
diff -u src/external/gpl3/binutils/dist/gas/remap.c:1.1.1.1 src/external/gpl3/binutils/dist/gas/remap.c:1.2
--- src/external/gpl3/binutils/dist/gas/remap.c:1.1.1.1	Tue Aug 18 09:30:15 2009
+++ src/external/gpl3/binutils/dist/gas/remap.c	Fri Sep 11 10:41:42 2009
@@ -82,8 +82,8 @@
 return filename;
   name = filename + map-old_len;
   name_len = strlen (name) + 1;
-  s = (char *) alloca (name_len + map-new_len);
+  s = (char *) xmalloc (name_len + map-new_len);
   memcpy (s, map-new_prefix, map-new_len);
   memcpy (s + map-new_len, name, name_len);
-  return xstrdup (s);
+  return s;
 }



CVS commit: src/external/gpl3/binutils/dist/gas/doc

2009-08-21 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Fri Aug 21 18:35:39 UTC 2009

Modified Files:
src/external/gpl3/binutils/dist/gas/doc: Makefile.in

Log Message:
Disable as.info target.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/binutils/dist/gas/doc/Makefile.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/gas/doc/Makefile.in
diff -u src/external/gpl3/binutils/dist/gas/doc/Makefile.in:1.2 src/external/gpl3/binutils/dist/gas/doc/Makefile.in:1.3
--- src/external/gpl3/binutils/dist/gas/doc/Makefile.in:1.2	Wed Aug 19 07:19:31 2009
+++ src/external/gpl3/binutils/dist/gas/doc/Makefile.in	Fri Aug 21 18:35:38 2009
@@ -330,6 +330,8 @@
 	-rm -f libtool
 
 as.info: as.texinfo $(as_TEXINFOS)
+	@echo NOT REBUILDING $@
+NetBSD_DISABLED_as.info: as.texinfo $(as_TEXINFOS)
 	restore=:  backupdir=$(am__leading_dot)am  \
 	rm -rf $$backupdir  mkdir $$backupdir  \
 	if ($(MAKEINFO) --version) /dev/null 21; then \