This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/3733: using .data instead of .bss



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]