From: danglin Date: Thu, 3 Oct 2019 23:51:42 +0000 (+0000) Subject: * config/pa/fptr.c: Disable -Warray-bounds warning. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12fd60af1d2627c6952542f89fc3db7b0a258c5;p=thirdparty%2Fgcc.git * config/pa/fptr.c: Disable -Warray-bounds warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276556 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index f242fba2ec3f..815118dbf838 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,7 @@ +2019-10-03 John David Anglin + + * config/pa/fptr.c: Disable -Warray-bounds warning. + 2019-09-25 Richard Henderson * 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 534400517305..6cca747ece27 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