From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24581 invoked by alias); 10 Aug 2007 05:46:51 -0000 Received: (qmail 24528 invoked by uid 22791); 10 Aug 2007 05:46:50 -0000 X-Spam-Check-By: sourceware.org Received: from smtp21.orange.fr (HELO smtp21.orange.fr) (80.12.242.46) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 10 Aug 2007 05:46:48 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2127.orange.fr (SMTP Server) with ESMTP id ACFDD1C0009D for ; Fri, 10 Aug 2007 07:46:46 +0200 (CEST) Received: from [10.0.0.16] (ANice-106-1-3-106.w80-11.abo.wanadoo.fr [80.11.170.106]) by mwinf2127.orange.fr (SMTP Server) with ESMTP id 2AF9A1C00090; Fri, 10 Aug 2007 07:46:46 +0200 (CEST) X-ME-UUID: 20070810054646176.2AF9A1C00090@mwinf2127.orange.fr Message-ID: <46BBFBBA.7030302@wanadoo.fr> Date: Fri, 10 Aug 2007 05:46:00 -0000 From: Paul Thomas User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: FX Coudert Cc: GNU Fortran , gcc-patches list Subject: Re: [gfortran,patch] Add -fmodule-private option (PR 31629) References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00646.txt.bz2 FX, :REVIEWMAIL: OK Thanks Paul > The attached simple patch adds a -fmodule-private option to make > module entities private as default, i.e. when you USE a module and > compile with this option, you cannot refer to any variable that wasn't > explicitly declared as PUBLIC. This is a tool and help for some > people's coding style. > > It's very simple as the code was already factored nicely, so it's in > fact a one-liner (plus option-handling stuff, documentation and > testcase). Bootstrapped and regtested on x86_64-linux, OK to commit? > > FX > > > > :ADDPATCH fortran: