aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2019-10-03 23:51:42 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2019-10-03 23:51:42 +0000
commitc49af82c5fd39e1938c22887262df82edafc28ea (patch)
tree31be8894fd99b121341c01c22aa0d67d55071aaf /libgcc
parent320be74c5ca406ca2ad37de9a059879217ec1bf1 (diff)
downloadgcc-c49af82c5fd39e1938c22887262df82edafc28ea.zip
gcc-c49af82c5fd39e1938c22887262df82edafc28ea.tar.gz
gcc-c49af82c5fd39e1938c22887262df82edafc28ea.tar.bz2
fptr.c: Disable -Warray-bounds warning.
* config/pa/fptr.c: Disable -Warray-bounds warning. From-SVN: r276556
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog4
-rw-r--r--libgcc/config/pa/fptr.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index f242fba..815118d 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,7 @@
+2019-10-03 John David Anglin <danglin@gcc.gnu.org>
+
+ * config/pa/fptr.c: Disable -Warray-bounds warning.
+
2019-09-25 Richard Henderson <richard.henderson@linaro.org>
* config.in, configure: Re-rebuild with stock autoconf 2.69,
diff --git a/libgcc/config/pa/fptr.c b/libgcc/config/pa/fptr.c
index 5344005..6cca747 100644
--- a/libgcc/config/pa/fptr.c
+++ b/libgcc/config/pa/fptr.c
@@ -62,6 +62,9 @@ _dl_read_access_allowed (unsigned int *addr)
return result;
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Warray-bounds"
+
/* __canonicalize_funcptr_for_compare must be hidden so that it is not
placed in the dynamic symbol table. Like millicode functions, it
must be linked into all binaries in order access the got table of
@@ -141,3 +144,5 @@ __canonicalize_funcptr_for_compare (fptr_t fptr)
return plabel[0];
}
+
+#pragma GCC diagnostic pop