c++/3733: using .data instead of .bss
ank@nixu.fi
ank@nixu.fi
Thu Jul 19 03:16:00 GMT 2001
>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:
More information about the Gcc-prs
mailing list