binutils/binutils-2.26-gcc-6.1.0.patch

79 lines
2.9 KiB
Diff
Raw Permalink Normal View History

From 202736beb188043bbac7a3b071f5f7a2b7f85dfa Mon Sep 17 00:00:00 2001
From: Cary Coutant <ccoutant@gmail.com>
Date: Thu, 3 Mar 2016 14:13:10 -0800
Subject: [PATCH] Add unused attribute where necessary to quiet GCC 6 warnings.
gold/
PR 19751
* arm.cc (Reloc_stub::Key::name): Add unused attribute.
* dirsearch.cc (Dir_caches::~Dir_caches): Likewise.
---
gold/ChangeLog | 6 ++++++
gold/arm.cc | 2 +-
gold/dirsearch.cc | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gold/arm.cc b/gold/arm.cc
index ed13c87..c47b002 100644
--- a/gold/arm.cc
+++ b/gold/arm.cc
@@ -597,7 +597,7 @@ class Reloc_stub : public Stub
// Name of key. This is mainly for debugging.
std::string
- name() const;
+ name() const ATTRIBUTE_UNUSED;
private:
// Stub type.
diff --git a/gold/dirsearch.cc b/gold/dirsearch.cc
index 1b3fefa..6178332 100644
--- a/gold/dirsearch.cc
+++ b/gold/dirsearch.cc
@@ -102,7 +102,7 @@ class Dir_caches
: lock_(), caches_()
{ }
- ~Dir_caches();
+ ~Dir_caches() ATTRIBUTE_UNUSED;
// Add a cache for a directory.
void add(const char*);
--
1.7.1
--- binutils-2.26/gas/config/tc-arm.c.orig 2016-06-25 15:54:41.394303218 +0200
+++ binutils-2.26/gas/config/tc-arm.c 2016-06-25 15:56:36.375225971 +0200
@@ -155,10 +155,10 @@
/* Constants for known architecture features. */
static const arm_feature_set fpu_default = FPU_DEFAULT;
-static const arm_feature_set fpu_arch_vfp_v1 = FPU_ARCH_VFP_V1;
+static const ATTRIBUTE_UNUSED arm_feature_set fpu_arch_vfp_v1 = FPU_ARCH_VFP_V1;
static const arm_feature_set fpu_arch_vfp_v2 = FPU_ARCH_VFP_V2;
-static const arm_feature_set fpu_arch_vfp_v3 = FPU_ARCH_VFP_V3;
-static const arm_feature_set fpu_arch_neon_v1 = FPU_ARCH_NEON_V1;
+static const ATTRIBUTE_UNUSED arm_feature_set fpu_arch_vfp_v3 = FPU_ARCH_VFP_V3;
+static const ATTRIBUTE_UNUSED arm_feature_set fpu_arch_neon_v1 = 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;
static const arm_feature_set fpu_arch_maverick = FPU_ARCH_MAVERICK;
@@ -210,7 +210,7 @@
static const arm_feature_set arm_ext_pan = ARM_FEATURE_CORE_HIGH (ARM_EXT2_PAN);
static const arm_feature_set arm_arch_any = ARM_ANY;
-static const arm_feature_set arm_arch_full = ARM_FEATURE (-1, -1, -1);
+static const ATTRIBUTE_UNUSED arm_feature_set arm_arch_full = 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;
static const arm_feature_set arm_arch_v6m_only = ARM_ARCH_V6M_ONLY;
@@ -259,7 +259,7 @@
ARM_FEATURE_COPROC (FPU_CRYPTO_EXT_ARMV8);
static const arm_feature_set crc_ext_armv8 =
ARM_FEATURE_COPROC (CRC_EXT_ARMV8);
-static const arm_feature_set fpu_neon_ext_v8_1 =
+static const ATTRIBUTE_UNUSED arm_feature_set fpu_neon_ext_v8_1 =
ARM_FEATURE_COPROC (FPU_NEON_EXT_ARMV8 | FPU_NEON_EXT_RDMA);
static int mfloat_abi_opt = -1;