From patchwork Fri May 27 14:01:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 97682 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 C65E7B6F91 for ; Sat, 28 May 2011 00:01:21 +1000 (EST) Received: (qmail 20402 invoked by alias); 27 May 2011 14:01:18 -0000 Received: (qmail 20386 invoked by uid 22791); 27 May 2011 14:01:17 -0000 X-SWARE-Spam-Status: No, hits=-5.8 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 May 2011 14:01:01 +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 2CB216CB00 for ; Fri, 27 May 2011 16:01:00 +0200 (CEST) Date: Fri, 27 May 2011 16:01:00 +0200 (CEST) From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix gcc.c-torture/execute/920612-1.c 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 The test contains undefined signed integer overflow and fails with a patch I have in testing. Fixed by adding -fwrapv. Richard. 2011-05-27 Richard Guenther * gcc.c-torture/execute/920612-1.x: Add -fwrapv. Index: gcc/testsuite/gcc.c-torture/execute/920612-1.x =================================================================== --- gcc/testsuite/gcc.c-torture/execute/920612-1.x (revision 0) +++ gcc/testsuite/gcc.c-torture/execute/920612-1.x (revision 0) @@ -0,0 +1,2 @@ +set additional_flags "-fwrapv" +return 0