From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21136 invoked by alias); 16 Aug 2007 07:11:25 -0000 Received: (qmail 20918 invoked by uid 22791); 16 Aug 2007 07:11:23 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.237) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 16 Aug 2007 07:11:21 +0000 Received: by wr-out-0506.google.com with SMTP id 67so130753wri for ; Thu, 16 Aug 2007 00:11:19 -0700 (PDT) Received: by 10.90.73.7 with SMTP id v7mr1888185aga.1187248279367; Thu, 16 Aug 2007 00:11:19 -0700 (PDT) Received: by 10.90.31.10 with HTTP; Thu, 16 Aug 2007 00:11:19 -0700 (PDT) Message-ID: <5787cf470708160011p502b44i1e550ef8a4bd37f2@mail.gmail.com> Date: Thu, 16 Aug 2007 07:11:00 -0000 From: "Uros Bizjak" To: gcc-patches Subject: [PATCH, dfp-testsuite]: Fix PR testsuite/33082 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00982.txt.bz2 Hello! -O is not enough to reliably test folding of various dfp values. It is possible to fix the failure by moving lines of code around as has been done a couple of weeks ago. Attached patch fixes this annoyance by simply adding -O2 to folding tests. Patch was tested on i686-pc-linux-gnu by running DFP testsuite. OK for mainline? testsuite/ChangeLog: 2007-08-16 Uros Bizjak PR testsuite/33082 * gcc.dg/dfp/convert-dfp-fold.c: Use -O2 instead of -O in dg-options. * gcc.dg/dfp/convert-bfp-fold.c: Ditto. * gcc.dg/dfp/convert-int-fold.c: Ditto. * gcc.dg/dfp/operator-arith-fold.c: Ditto. Uros. Index: convert-dfp-fold.c =================================================================== --- convert-dfp-fold.c (revision 127532) +++ convert-dfp-fold.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-options "-std=gnu99 -O" } */ +/* { dg-options "-std=gnu99 -O2" } */ /* N1150 5.2 Conversions among decimal floating types and between decimal floating types and generic floating types. Index: convert-int-fold.c =================================================================== --- convert-int-fold.c (revision 127532) +++ convert-int-fold.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-options "-std=gnu99 -O" } */ +/* { dg-options "-std=gnu99 -O2" } */ /* N1150 5.1 Conversion between decimal floating integer. C99 6.3.1.4(1a) New. Index: convert-bfp-fold.c =================================================================== --- convert-bfp-fold.c (revision 127532) +++ convert-bfp-fold.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-options "-std=gnu99 -O" } */ +/* { dg-options "-std=gnu99 -O2" } */ /* N1150 5.2 Conversions among decimal floating types and between decimal floating types and generic floating types. Index: operator-arith-fold.c =================================================================== --- operator-arith-fold.c (revision 127532) +++ operator-arith-fold.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-options "-std=gnu99 -O" } */ +/* { dg-options "-std=gnu99 -O2" } */ /* C99 6.5.5: Multiplicative operators. C99 6.5.6: Additive operators. */