From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13736 invoked by alias); 18 Mar 2010 13:55:51 -0000 Received: (qmail 13726 invoked by uid 22791); 18 Mar 2010 13:55:50 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from matups.math.u-psud.fr (HELO matups.math.u-psud.fr) (129.175.50.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 18 Mar 2010 13:55:44 +0000 Received: from barah.math.u-psud.fr (barah.math.u-psud.fr [129.175.52.24]) by matups.math.u-psud.fr (Postfix) with ESMTP id 8BBD97541; Thu, 18 Mar 2010 14:55:41 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by barah.math.u-psud.fr (Postfix) with ESMTP id 87E04474164; Thu, 18 Mar 2010 14:55:41 +0100 (CET) Received: from barah.math.u-psud.fr ([127.0.0.1]) by localhost (barah.math.u-psud.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T1zlidzMIi5p; Thu, 18 Mar 2010 14:55:39 +0100 (CET) Received: from [IPv6:::1] (topodyn-ng.math.u-psud.fr [129.175.50.33]) by barah.math.u-psud.fr (Postfix) with ESMTP id D1BC8474118; Thu, 18 Mar 2010 14:55:39 +0100 (CET) Message-ID: <4BA230DB.8060002@free.fr> Date: Thu, 18 Mar 2010 14:06:00 -0000 From: Duncan Sands User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100316 Thunderbird/3.0.3 MIME-Version: 1.0 To: Eric Botcazou CC: gcc-patches@gcc.gnu.org Subject: Re: [Ada] Delete bogus use of flag_zero_initialized_in_bss References: <4B9F3DA9.5020204@free.fr> <201003161707.16977.ebotcazou@adacore.com> <4B9FB2B1.7010302@free.fr> <201003162306.29494.ebotcazou@adacore.com> In-Reply-To: <201003162306.29494.ebotcazou@adacore.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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: 2010-03/txt/msg00807.txt.bz2 Hi Eric, >> On a linux system, the program loader will fill the BSS section with zeros. >> So in both cases the global will be zero initialized. What then is the >> point of clearing flag_zero_initialized_in_bss? > > Not all Ada programs are meant to run on a linux system. if I understand right you agree that clearing this flag is pointless on linux (and probably many other) systems, but that it is simpler to clear it everywhere rather than only on those systems that need it? Ciao, Duncan.