Hi,
as noticed by Jeff, this patch also triggers warning in one of LTO
testcases.  The testcase is reduced and warning seems legit, triggered
by extra inlining.  So I have just silenced it.

Honza

gcc/testsuite/ChangeLog:

        * gcc.dg/lto/20091013-1_0.c: Disable stringop-overread warning.

diff --git a/gcc/testsuite/gcc.dg/lto/20091013-1_0.c 
b/gcc/testsuite/gcc.dg/lto/20091013-1_0.c
index afceb2436cd..7737e252b99 100644
--- a/gcc/testsuite/gcc.dg/lto/20091013-1_0.c
+++ b/gcc/testsuite/gcc.dg/lto/20091013-1_0.c
@@ -2,7 +2,7 @@
 /* { dg-require-effective-target fpic } */
 /* { dg-require-effective-target ptr_eq_long } */
 /* { dg-lto-options {{-fPIC -r -nostdlib -flto} {-fPIC -r -nostdlib -O2 
-flto}} } */
-/* { dg-extra-ld-options "-flinker-output=nolto-rel" } */
+/* { dg-extra-ld-options "-flinker-output=nolto-rel -Wno-stringop-overread" } 
*/
 
 void * HeapAlloc(void*,unsigned int,unsigned long);
 

Reply via email to