From patchwork Fri Aug 1 12:51:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 375750 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C9BE6140107 for ; Fri, 1 Aug 2014 22:52:13 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=RJD1s+qs6EnS+9oB3iYiMe73A4Y3fINh/WYBA929BA+WVZz7nW 2SNrabuifOLGBXy73hmeTwMfunnirHxosVPvzpyvQ5K8FYNEYj+F95pd6Cqvrijl LxFEPzH91hRXvVZWzLiJmMiTAfvq8T7lUK5zm4/Swq8VcwkHKQcj+V60Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=YOHl7W/S1+frqqmSU/Zq+2nUmWw=; b=YkNjK8NXl5sRkclJYQP1 D1f6ayxQaYTjZPBDTGYBFZeRpYgo+4EdqNtYj0DCHzxNonxgQCBcnz8bJyPWy7S4 OteFWs9xrvt209/NPSqaJGbn0ekDi6pPsGJ5Jh3tky1ucKpSZxdaXwM5XuCZhK2U P5te9dyZ0drvb5Bexzwwj3Y= Received: (qmail 11072 invoked by alias); 1 Aug 2014 12:51:18 -0000 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 Received: (qmail 10983 invoked by uid 89); 1 Aug 2014 12:51:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp-relay.CeBiTec.Uni-Bielefeld.DE Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Aug 2014 12:51:15 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 4BEA7A2E; Fri, 1 Aug 2014 14:51:13 +0200 (CEST) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ru8NUyWo4Pv4; Fri, 1 Aug 2014 14:51:11 +0200 (CEST) Received: from lokon.CeBiTec.Uni-Bielefeld.DE (lokon.CeBiTec.Uni-Bielefeld.DE [129.70.161.110]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id CDCFCA2C; Fri, 1 Aug 2014 14:51:11 +0200 (CEST) Received: (from ro@localhost) by lokon.CeBiTec.Uni-Bielefeld.DE (8.14.7+Sun/8.14.7/Submit) id s71CpAbi008956; Fri, 1 Aug 2014 14:51:10 +0200 (MEST) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Arnaud Charlet Subject: [Ada] Don't unconditionally define _LARGEFILE_SOURCE Date: Fri, 01 Aug 2014 14:51:10 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes This patch 2014-08-01 Pascal Obry * cstreams.c: Only enable large file support on know supported platforms. Add missing defines/includes. broke Ada bootstrap on Solaris: /vol/gcc/src/hg/trunk/local/gcc/ada/cstreams.c:34:0: error: "_LARGEFILE_SOURCE" redefined [-Werror] #define _LARGEFILE_SOURCE ^ : note: this is the location of the previous definition Fixed as follows, i386-pc-solaris2.10 bootstrap is past the failure now. Ok for mainline? Rainer 2014-08-01 Rainer Orth gcc/ada: * cstreams.c (_LARGEFILE_SOURCE): Guard definition. diff --git a/gcc/ada/cstreams.c b/gcc/ada/cstreams.c --- a/gcc/ada/cstreams.c +++ b/gcc/ada/cstreams.c @@ -31,7 +31,9 @@ /* Routines required for implementing routines in Interfaces.C.Streams. */ +#ifndef _LARGEFILE_SOURCE #define _LARGEFILE_SOURCE +#endif #define _FILE_OFFSET_BITS 64 /* the define above will make off_t a 64bit type on GNU/Linux */