From patchwork Fri Aug 27 11:36:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 62849 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id EFEC2B70F1 for ; Fri, 27 Aug 2010 21:36:44 +1000 (EST) Received: (qmail 27092 invoked by alias); 27 Aug 2010 11:36:42 -0000 Received: (qmail 27077 invoked by uid 22791); 27 Aug 2010 11:36:40 -0000 X-SWARE-Spam-Status: No, hits=-5.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Aug 2010 11:36:28 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 36E088E8CC for ; Fri, 27 Aug 2010 13:36:26 +0200 (CEST) Date: Fri, 27 Aug 2010 13:36:26 +0200 (CEST) From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] More out-of-bounds array accesses Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org ... There are appearantly also some here (but I'm not 100% sure) FAIL: 25_algorithms/heap/1.cc execution test FAIL: 25_algorithms/stable_partition/mem_check.cc execution test FAIL: 25_algorithms/stable_sort/mem_check.cc execution test and there's definitely some here (but I can't wrap my brain around how to fix that) FAIL: gcc.target/x86_64/abi/test_passing_structs.c execution, -O2 FAIL: gcc.target/x86_64/abi/test_passing_unions.c execution, -O2 Richard. 2010-08-27 Richard Guenther * gcc.dg/graphite/scop-1.c: Fix out-of-bound array accesses. * gcc.dg/graphite/scop-2.c: Likewise. * gcc.dg/graphite/scop-20.c: Likewise. * gcc.dg/vect/slp-25.c: Likewise. Index: gcc/testsuite/gcc.dg/graphite/scop-1.c =================================================================== --- gcc/testsuite/gcc.dg/graphite/scop-1.c (revision 163563) +++ gcc/testsuite/gcc.dg/graphite/scop-1.c (working copy) @@ -3,7 +3,7 @@ void bar (void); int toto() { int i, j, k; - int a[100][100]; + int a[101][100]; int b[100]; for (i = 1; i < 100; i++) Index: gcc/testsuite/gcc.dg/graphite/scop-2.c =================================================================== --- gcc/testsuite/gcc.dg/graphite/scop-2.c (revision 163563) +++ gcc/testsuite/gcc.dg/graphite/scop-2.c (working copy) @@ -3,7 +3,7 @@ void bar (void); int toto() { int i, j, k; - int a[100][100]; + int a[101][100]; int b[100]; for (i = 1; i < 100; i++) Index: gcc/testsuite/gcc.dg/graphite/scop-20.c =================================================================== --- gcc/testsuite/gcc.dg/graphite/scop-20.c (revision 163563) +++ gcc/testsuite/gcc.dg/graphite/scop-20.c (working copy) @@ -3,7 +3,7 @@ void bar (void); int toto() { int i, j, k; - int a[100][100]; + int a[101][100]; int b[100]; for (i = 1; i < 100; i++) Index: gcc/testsuite/gcc.dg/vect/slp-25.c =================================================================== --- gcc/testsuite/gcc.dg/vect/slp-25.c (revision 163563) +++ gcc/testsuite/gcc.dg/vect/slp-25.c (working copy) @@ -7,8 +7,8 @@ /* Unaligned stores. */ -int ia[N+1]; -short sa[N+1]; +int ia[N+2]; +short sa[N+2]; int main1 (int n) {