This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3733: using .data instead of .bss
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3733: using .data instead of .bss
- From: ank at nixu dot fi
- Date: 19 Jul 2001 10:15:08 -0000
- Reply-To: ank at nixu dot fi
>Number: 3733
>Category: c++
>Synopsis: using .data instead of .bss
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 19 03:16:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: ank@nixu.fi (Alexander Krotov)
>Release: 3.0
>Organization:
>Environment:
FreeBSD 4.3
>Description:
Following simple code
char a[1000][1000];
Compiles to
.globl a
.data
.align 32
.type a,@object
.size a,1000000
a:
.zero 1000000
For some reason room for 'a' is allocated in .data instead
of .bss.
C (not C++) compiler is free of this problem.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: