From patchwork Mon Jun 14 09:17:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Charlet X-Patchwork-Id: 55496 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 40EA71007D2 for ; Mon, 14 Jun 2010 19:17:32 +1000 (EST) Received: (qmail 2053 invoked by alias); 14 Jun 2010 09:17:30 -0000 Received: (qmail 2039 invoked by uid 22791); 14 Jun 2010 09:17:29 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Jun 2010 09:17:25 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 4B082CB021C; Mon, 14 Jun 2010 11:17:28 +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 WlERi3jDh9oA; Mon, 14 Jun 2010 11:17:28 +0200 (CEST) Received: from saumur.act-europe.fr (saumur.act-europe.fr [10.10.0.183]) by mel.act-europe.fr (Postfix) with ESMTP id 37A24CB021B; Mon, 14 Jun 2010 11:17:28 +0200 (CEST) Received: by saumur.act-europe.fr (Postfix, from userid 525) id 4EB4DD9B31; Mon, 14 Jun 2010 11:17:34 +0200 (CEST) Date: Mon, 14 Jun 2010 11:17:34 +0200 From: Arnaud Charlet To: gcc-patches@gcc.gnu.org Cc: Vasiliy Fofanov Subject: [Ada] Redefine IOV_MAX on Tru64 and VMS Message-ID: <20100614091734.GA15443@adacore.com> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.9i X-IsSubscribed: yes 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 Redefine IOV_MAX on Tru64 and VMS since the vector IO doesn't work at default value properly. Tested on x86_64-pc-linux-gnu, committed on trunk 2010-06-14 Vasiliy Fofanov * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the vector IO doesn't work at default value properly. Index: s-oscons-tmplt.c =================================================================== --- s-oscons-tmplt.c (revision 160705) +++ s-oscons-tmplt.c (working copy) @@ -98,6 +98,22 @@ pragma Style_Checks ("M32766"); #include #include +#if defined (__alpha__) && defined (__osf__) +/** Tru64 is unable to do vector IO operations with default value of IOV_MAX, + ** so its value is redefined to a small one which is known to work properly. + **/ +#undef IOV_MAX +#define IOV_MAX 16 +#endif + +#if defined (__VMS) +/** VMS is unable to do vector IO operations with default value of IOV_MAX, + ** so its value is redefined to a small one which is known to work properly. + **/ +#undef IOV_MAX +#define IOV_MAX 16 +#endif + #if ! (defined (__vxworks) || defined (__VMS) || defined (__MINGW32__) || \ defined (__nucleus__)) # define HAVE_TERMIOS