From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15397 invoked by alias); 30 Apr 2004 20:05:55 -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 15390 invoked from network); 30 Apr 2004 20:05:54 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sources.redhat.com with SMTP; 30 Apr 2004 20:05:54 -0000 Received: (qmail 6047 invoked by uid 10); 30 Apr 2004 20:05:54 -0000 Received: (qmail 11496 invoked by uid 500); 30 Apr 2004 20:05:42 -0000 From: Ian Lance Taylor To: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Cc: gcc@gcc.gnu.org Subject: Re: -fzero-initialized-in-bss again References: <10404302000.AA05451@vlsi1.ultra.nyu.edu> Date: Fri, 30 Apr 2004 21:52:00 -0000 In-Reply-To: <10404302000.AA05451@vlsi1.ultra.nyu.edu> 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/msg01474.txt.bz2 kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes: > 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. > > I think Eric was a bit misleading here. Although the problem occured > with an Ada program, it is not language-specific and can occur in > any language. Can you or he express it in C terms? Is the problem that -fzero-initialized-in-bss is causing a zero initialized variable to become a common variable? A BSS variable should not be a common variable. That would be wrong. But probably I misunderstand. Ian