Fix compile time warning messages building with gcc v6.1.1

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.
This commit is contained in:
Nick Clifton 2016-06-13 10:49:26 +01:00
parent 1d3843e0b7
commit 69c9e028b6
8 changed files with 30 additions and 5 deletions

View 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> 2016-03-18 Nick Clifton <nickc@redhat.com>
* texi2pod.pl: Add TARGET to the list of recognised man page * texi2pod.pl: Add TARGET to the list of recognised man page

View file

@ -311,7 +311,7 @@ while(<$inf>) {
@columns = (); @columns = ();
for $column (split (/\s*\@tab\s*/, $1)) { for $column (split (/\s*\@tab\s*/, $1)) {
# @strong{...} is used a @headitem work-alike # @strong{...} is used a @headitem work-alike
$column =~ s/^\@strong{(.*)}$/$1/; $column =~ s/^\@strong\{(.*)\}$/$1/;
push @columns, $column; push @columns, $column;
} }
$_ = "\n=item ".join (" : ", @columns)."\n"; $_ = "\n=item ".join (" : ", @columns)."\n";

View 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> 2016-06-08 Renlin Li <renlin.li@arm.com>
* config/tc-aarch64.c (print_operands): Substitute size. * config/tc-aarch64.c (print_operands): Substitute size.

View file

@ -2916,7 +2916,7 @@ md_apply_fix (fixS *fixP,
bits of a 32-bit negative value read in by the parser are set, bits of a 32-bit negative value read in by the parser are set,
so that the correct comparisons are made. */ so that the correct comparisons are made. */
if (value & 0x80000000) if (value & 0x80000000)
value |= (-1L << 31); value |= (-1UL << 31);
reloc = fixP->fx_r_type; reloc = fixP->fx_r_type;
switch (reloc) switch (reloc)

View 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_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_arch_fpa = FPU_ARCH_FPA;
static const arm_feature_set fpu_any_hard = FPU_ANY_HARD; 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; static const arm_feature_set fpu_arch_maverick = FPU_ARCH_MAVERICK;
#endif
static const arm_feature_set fpu_endian_pure = FPU_ARCH_ENDIAN_PURE; static const arm_feature_set fpu_endian_pure = FPU_ARCH_ENDIAN_PURE;
#ifdef CPU_DEFAULT #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_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_v7a = ARM_FEATURE_CORE_LOW (ARM_EXT_V7A);
static const arm_feature_set arm_ext_v7r = ARM_FEATURE_CORE_LOW (ARM_EXT_V7R); 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); 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_v8 = ARM_FEATURE_CORE_LOW (ARM_EXT_V8);
static const arm_feature_set arm_ext_m = static const arm_feature_set arm_ext_m =
ARM_FEATURE_CORE (ARM_EXT_V6M | ARM_EXT_OS | ARM_EXT_V7M, 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. */ /* Instructions shared between ARMv8-A and ARMv8-M. */
static const arm_feature_set arm_ext_atomics = static const arm_feature_set arm_ext_atomics =
ARM_FEATURE_CORE_HIGH (ARM_EXT2_ATOMICS); ARM_FEATURE_CORE_HIGH (ARM_EXT2_ATOMICS);
#ifdef OBJ_ELF
/* DSP instructions Tag_DSP_extension refers to. */ /* DSP instructions Tag_DSP_extension refers to. */
static const arm_feature_set arm_ext_dsp = static const arm_feature_set arm_ext_dsp =
ARM_FEATURE_CORE_LOW (ARM_EXT_V5E | ARM_EXT_V5ExP | ARM_EXT_V6_DSP); ARM_FEATURE_CORE_LOW (ARM_EXT_V5E | ARM_EXT_V5ExP | ARM_EXT_V6_DSP);
#endif
static const arm_feature_set arm_ext_ras = static const arm_feature_set arm_ext_ras =
ARM_FEATURE_CORE_HIGH (ARM_EXT2_RAS); ARM_FEATURE_CORE_HIGH (ARM_EXT2_RAS);
/* FP16 instructions. */ /* 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_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_t2 = ARM_ARCH_THUMB2;
static const arm_feature_set arm_arch_none = ARM_ARCH_NONE; 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; static const arm_feature_set arm_arch_v6m_only = ARM_ARCH_V6M_ONLY;
#endif
static const arm_feature_set arm_cext_iwmmxt2 = static const arm_feature_set arm_cext_iwmmxt2 =
ARM_FEATURE_COPROC (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); ARM_FEATURE_COPROC (FPU_NEON_EXT_V1);
static const arm_feature_set fpu_vfp_v3_or_neon_ext = static const arm_feature_set fpu_vfp_v3_or_neon_ext =
ARM_FEATURE_COPROC (FPU_NEON_EXT_V1 | FPU_VFP_EXT_V3); ARM_FEATURE_COPROC (FPU_NEON_EXT_V1 | FPU_VFP_EXT_V3);
#ifdef OBJ_ELF
static const arm_feature_set fpu_vfp_fp16 = static const arm_feature_set fpu_vfp_fp16 =
ARM_FEATURE_COPROC (FPU_VFP_EXT_FP16); ARM_FEATURE_COPROC (FPU_VFP_EXT_FP16);
static const arm_feature_set fpu_neon_ext_fma = static const arm_feature_set fpu_neon_ext_fma =
ARM_FEATURE_COPROC (FPU_NEON_EXT_FMA); ARM_FEATURE_COPROC (FPU_NEON_EXT_FMA);
#endif
static const arm_feature_set fpu_vfp_ext_fma = static const arm_feature_set fpu_vfp_ext_fma =
ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA); ARM_FEATURE_COPROC (FPU_VFP_EXT_FMA);
static const arm_feature_set fpu_vfp_ext_armv8 = static const arm_feature_set fpu_vfp_ext_armv8 =

View 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, bits of a 32-bit negative value read in by the parser are set,
so that the correct comparisons are made. */ so that the correct comparisons are made. */
if (value & 0x80000000) if (value & 0x80000000)
value |= (-1L << 31); value |= (-1UL << 31);
/* Verify operand value is even. */ /* Verify operand value is even. */

View file

@ -1128,7 +1128,7 @@ nios2_check_overflow (valueT fixup, reloc_howto_type *howto)
if ((fixup & 0x80000000) > 0) if ((fixup & 0x80000000) > 0)
{ {
/* Check for negative overflow. */ /* Check for negative overflow. */
if ((signed) fixup < ((signed) ~0 << (howto->bitsize-1))) if ((signed) fixup < (signed) (~0U << (howto->bitsize - 1)))
return TRUE; return TRUE;
} }
else else

View file

@ -1,7 +1,7 @@
#name: ARMv8.2-A #name: ARMv8.2-A
#as: -march=armv8.2-a #as: -march=armv8.2-a
#objdump: -dr #objdump: -dr
#skip: *-*-pe *-wince-* *-*-coff #skip: *-*-pe *-wince-* *-*-coff *-*-aout
.*: +file format .*arm.* .*: +file format .*arm.*