This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/9540: C99 initializers generate lots of code
- From: mariube+gcc+ at ifi dot uio dot no
- To: gcc-gnats at gcc dot gnu dot org
- Date: 2 Feb 2003 20:06:03 -0000
- Subject: c/9540: C99 initializers generate lots of code
- Reply-to: mariube+gcc+ at ifi dot uio dot no
>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: