]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix compile time warning messages building with gcc v6.1.1
authorNick Clifton <nickc@redhat.com>
Mon, 13 Jun 2016 09:49:26 +0000 (10:49 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 13 Jun 2016 09:49:26 +0000 (10:49 +0100)
etc * texi2pod.pl: Escape curly braces, whilst searching for keyword
strong.

gas * config/tc-arm.c: For non-ELF based targets skip ARM feature sets
that are not supported.

* config/tc-arc.c (md_apply_fix): Avoid left shifting a signed
constant.
* config/tc-cr16.c (check_range): Likewise.
* config/tc-nios2.c (nios2_check_overflow): Likewise.

etc/ChangeLog
etc/texi2pod.pl
gas/ChangeLog
gas/config/tc-arc.c
gas/config/tc-arm.c
gas/config/tc-cr16.c
gas/config/tc-nios2.c
gas/testsuite/gas/arm/armv8_2-a.d

index c1103382652a8fbe373773f58b6e831d131a4dd7..1864bf0c89f409b8856271915d4f3385e930a1ef 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-13  Nick Clifton  <nickc@redhat.com>
+
+       * texi2pod.pl: Escape curly braces, whilst searching for keyword
+       strong.
+
 2016-03-18  Nick Clifton  <nickc@redhat.com>
 
        * texi2pod.pl: Add TARGET to the list of recognised man page
index dd3e181db34c45bd9c937c8139cb582436e80459..0f465b7c768cb0213a617d47d4151c2a20e05229 100644 (file)
@@ -311,7 +311,7 @@ while(<$inf>) {
        @columns = ();
        for $column (split (/\s*\@tab\s*/, $1)) {
            # @strong{...} is used a @headitem work-alike
-           $column =~ s/^\@strong{(.*)}$/$1/;
+           $column =~ s/^\@strong\{(.*)\}$/$1/;
            push @columns, $column;
        }
        $_ = "\n=item ".join (" : ", @columns)."\n";
index 38d0041b523c0b91ae521fd93ade48103822cdf4..458e96ffe931870bdbf5ed4e385e5568293fcac4 100644 (file)
@@ -1,3 +1,13 @@
+2016-06-13  Nick Clifton  <nickc@redhat.com>
+
+       * config/tc-arm.c: For non-ELF based targets skip ARM feature sets
+       that are not supported.
+
+       * config/tc-arc.c (md_apply_fix): Avoid left shifting a signed
+       constant.
+       * config/tc-cr16.c (check_range): Likewise.
+       * config/tc-nios2.c (nios2_check_overflow): Likewise.
+
 2016-06-08  Renlin Li  <renlin.li@arm.com>
 
        * config/tc-aarch64.c (print_operands): Substitute size.
index a5b9a98b77faaebf051ad1a3a34794de8a30a30b..966b18d2ac7fe721d5847d81b0c3170f0e78c446 100644 (file)
@@ -2916,7 +2916,7 @@ md_apply_fix (fixS *fixP,
      bits of a 32-bit negative value read in by the parser are set,
      so that the correct comparisons are made.  */
   if (value & 0x80000000)
-    value |= (-1L << 31);
+    value |= (-1UL << 31);
 
   reloc = fixP->fx_r_type;
   switch (reloc)
index 500534321337f3012d9724d9ff2a52e357d67833..73d0531639a9f8b277729122999122a423cc7549 100644 (file)
@@ -161,7 +161,9 @@ static const arm_feature_set fpu_arch_vfp_v3 ATTRIBUTE_UNUSED = FPU_ARCH_VFP_V3;
 static const arm_feature_set fpu_arch_neon_v1 ATTRIBUTE_UNUSED = FPU_ARCH_NEON_V1;
 static const arm_feature_set fpu_arch_fpa = FPU_ARCH_FPA;
 static const arm_feature_set fpu_any_hard = FPU_ANY_HARD;
+#ifdef OBJ_ELF
 static const arm_feature_set fpu_arch_maverick = FPU_ARCH_MAVERICK;
+#endif
 static const arm_feature_set fpu_endian_pure = FPU_ARCH_ENDIAN_PURE;
 
 #ifdef CPU_DEFAULT
@@ -198,7 +200,9 @@ static const arm_feature_set arm_ext_div = ARM_FEATURE_CORE_LOW (ARM_EXT_DIV);
 static const arm_feature_set arm_ext_v7 = ARM_FEATURE_CORE_LOW (ARM_EXT_V7);
 static const arm_feature_set arm_ext_v7a = ARM_FEATURE_CORE_LOW (ARM_EXT_V7A);
 static const arm_feature_set arm_ext_v7r = ARM_FEATURE_CORE_LOW (ARM_EXT_V7R);
+#ifdef OBJ_ELF
 static const arm_feature_set arm_ext_v7m = ARM_FEATURE_CORE_LOW (ARM_EXT_V7M);
+#endif
 static const arm_feature_set arm_ext_v8 = ARM_FEATURE_CORE_LOW (ARM_EXT_V8);
 static const arm_feature_set arm_ext_m =
   ARM_FEATURE_CORE (ARM_EXT_V6M | ARM_EXT_OS | ARM_EXT_V7M,
@@ -220,9 +224,11 @@ static const arm_feature_set arm_ext_v6t2_v8m =
 /* Instructions shared between ARMv8-A and ARMv8-M.  */
 static const arm_feature_set arm_ext_atomics =
   ARM_FEATURE_CORE_HIGH (ARM_EXT2_ATOMICS);
+#ifdef OBJ_ELF
 /* DSP instructions Tag_DSP_extension refers to.  */
 static const arm_feature_set arm_ext_dsp =
   ARM_FEATURE_CORE_LOW (ARM_EXT_V5E | ARM_EXT_V5ExP | ARM_EXT_V6_DSP);
+#endif
 static const arm_feature_set arm_ext_ras =
   ARM_FEATURE_CORE_HIGH (ARM_EXT2_RAS);
 /* FP16 instructions.  */
@@ -233,7 +239,9 @@ static const arm_feature_set arm_arch_any = ARM_ANY;
 static const arm_feature_set arm_arch_full ATTRIBUTE_UNUSED = ARM_FEATURE (-1, -1, -1);
 static const arm_feature_set arm_arch_t2 = ARM_ARCH_THUMB2;
 static const arm_feature_set arm_arch_none = ARM_ARCH_NONE;
+#ifdef OBJ_ELF
 static const arm_feature_set arm_arch_v6m_only = ARM_ARCH_V6M_ONLY;
+#endif
 
 static const arm_feature_set arm_cext_iwmmxt2 =
   ARM_FEATURE_COPROC (ARM_CEXT_IWMMXT2);
@@ -263,10 +271,12 @@ static const arm_feature_set fpu_neon_ext_v1 =
   ARM_FEATURE_COPROC (FPU_NEON_EXT_V1);
 static const arm_feature_set fpu_vfp_v3_or_neon_ext =
   ARM_FEATURE_COPROC (FPU_NEON_EXT_V1 | FPU_VFP_EXT_V3);
+#ifdef OBJ_ELF
 static const arm_feature_set fpu_vfp_fp16 =
   ARM_FEATURE_COPROC (FPU_VFP_EXT_FP16);
 static const arm_feature_set fpu_neon_ext_fma =
   ARM_FEATURE_COPROC (FPU_NEON_EXT_FMA);
+#endif
 static const arm_feature_set fpu_vfp_ext_fma =
   ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA);
 static const arm_feature_set fpu_vfp_ext_armv8 =
index 229f51adde23939d6e17d835daa969dd4db36b2a..40d9ba4d510f193c9dd543ab2134575c27fea310 100644 (file)
@@ -2002,7 +2002,7 @@ check_range (long *num, int bits, int unsigned flags, int update)
      bits of a 32-bit negative value read in by the parser are set,
      so that the correct comparisons are made.  */
   if (value & 0x80000000)
-    value |= (-1L << 31);
+    value |= (-1UL << 31);
 
 
   /* Verify operand value is even.  */
index 6bcef1e02456408df3d56d30f3eae1390420a4fa..0ddc5017bc738059d679d0558e2b225090a33964 100644 (file)
@@ -1128,7 +1128,7 @@ nios2_check_overflow (valueT fixup, reloc_howto_type *howto)
       if ((fixup & 0x80000000) > 0)
        {
          /* Check for negative overflow.  */
-         if ((signed) fixup < ((signed) ~0 << (howto->bitsize-1)))
+         if ((signed) fixup < (signed) (~0U << (howto->bitsize - 1)))
            return TRUE;
        }
       else
index a971711179ee0d4a215e7683edf2038b9f3b11cd..068e13a5a5968410c90ee718152cc6fc107ee803 100644 (file)
@@ -1,7 +1,7 @@
 #name: ARMv8.2-A
 #as: -march=armv8.2-a
 #objdump: -dr
-#skip: *-*-pe *-wince-* *-*-coff
+#skip: *-*-pe *-wince-* *-*-coff *-*-aout
 
 .*: +file format .*arm.*