This is the mail archive of the gcc-prs@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]
Other format: [Raw text]

c/9540: C99 initializers generate lots of code


>Number:         9540
>Category:       c
>Synopsis:       C99 initializers generate lots of code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          pessimizes-code
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 02 20:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     mariube+gcc+@ifi.uio.no
>Release:        3.2.1
>Organization:
>Environment:
x86
>Description:
When using C99 initializers, i.e.:

    struct bleh *blah = malloc( sizeof *blah );

    *blah = (struct bleh){ .field1 = value1, ... };

the code generated is far bigger than the traditional

    blah->field1 = value1; ...

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