From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30539 invoked by alias); 30 Apr 2004 19:45:29 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 30530 invoked from network); 30 Apr 2004 19:45:28 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sources.redhat.com with SMTP; 30 Apr 2004 19:45:28 -0000 Received: (qmail 4543 invoked by uid 10); 30 Apr 2004 19:45:27 -0000 Received: (qmail 11344 invoked by uid 500); 30 Apr 2004 19:45:15 -0000 From: Ian Lance Taylor To: Eric Botcazou Cc: gcc@gcc.gnu.org Subject: Re: -fzero-initialized-in-bss again References: <200404302109.55902.ebotcazou@act-europe.fr> Date: Fri, 30 Apr 2004 21:39:00 -0000 In-Reply-To: <200404302109.55902.ebotcazou@act-europe.fr> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-04/txt/msg01472.txt.bz2 Eric Botcazou writes: > We recently (after the 3.4.0 release, unfortunately) discovered that the > default option -fzero-initialized-in-bss has an annoying side-effect for the > Ada compiler: it may prevent the user from overriding an object in a library > (e.g. the runtime) by a local, slightly modified copy of the object. Whether something like -fzero-initialized-in-bss is correct really depends on language rules. It sounds like the Ada compiler should turn it off by default. Or else the Ada compiler should default to -fno-common; that is also a language rules issue. Ian