From patchwork Thu Oct 13 12:26:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 119479 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 D02A7B6F85 for ; Thu, 13 Oct 2011 23:59:07 +1100 (EST) Received: (qmail 16912 invoked by alias); 13 Oct 2011 12:31:05 -0000 Received: (qmail 16899 invoked by uid 22791); 13 Oct 2011 12:31:03 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 Oct 2011 12:30:50 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id D1F83CB0368 for ; Thu, 13 Oct 2011 14:30:49 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yB78NNXVPQ2K for ; Thu, 13 Oct 2011 14:30:40 +0200 (CEST) Received: from [192.168.1.2] (bon31-9-83-155-120-49.fbx.proxad.net [83.155.120.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 2A92DCB038E for ; Thu, 13 Oct 2011 14:30:20 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Fix gcc.dg/builtins-67.c on Solaris 8/9 Date: Thu, 13 Oct 2011 14:26:39 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Message-Id: <201110131426.39238.ebotcazou@adacore.com> 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 [To the right list this time] The test fails with a link error, as 'round' and 'rint' are only C99. Fixed thusly, tested on SPARC/Solaris 8, applied on the mainline as obvious. 2011-10-13 Eric Botcazou * gcc.dg/builtins-67.c: Guard iround and irint with HAVE_C99_RUNTIME. Index: gcc.dg/builtins-67.c =================================================================== --- gcc.dg/builtins-67.c (revision 179844) +++ gcc.dg/builtins-67.c (working copy) @@ -58,14 +58,14 @@ long long llceilf (float a) { return (lo long long llceill (long double a) { return (long long) ceill (a); } #endif -int iround (double a) { return (int) round (a); } #ifdef HAVE_C99_RUNTIME +int iround (double a) { return (int) round (a); } int iroundf (float a) { return (int) roundf (a); } int iroundl (long double a) { return (int) roundl (a); } #endif -int irint (double a) { return (int) rint (a); } #ifdef HAVE_C99_RUNTIME +int irint (double a) { return (int) rint (a); } int irintf (float a) { return (int) rintf (a); } int irintl (long double a) { return (int) rintl (a); } #endif