From owner-freebsd-hackers Tue Nov 20 8:35:44 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id DA63537B416 for ; Tue, 20 Nov 2001 08:35:42 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id fAKGZfa70727; Tue, 20 Nov 2001 09:35:41 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id fAKGZb785918; Tue, 20 Nov 2001 09:35:41 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200111201635.fAKGZb785918@harmony.village.org> To: freebsd@hoolan.org Subject: Re: c++ compiler allocates uninitialized global variable in .data section Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Tue, 20 Nov 2001 20:06:23 +0800." References: Date: Tue, 20 Nov 2001 09:35:37 -0700 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message freebsd@hoolan.org writes: : I found that c++ compiler (4.4-RELEASE) allocates uninitialized global : variable in the data section instead of the bss section. Here is my : code sample (b.cpp): I think this is a minor bug. FreeBSD will move to 3.0 (or newer) for 5.0-RELEASE which will likely fix this issue. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message