[Bug c++/42556] Unnecessary generation of a zero initializer for array with C++
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Dec 30 19:47:00 GMT 2009
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-12-30 19:47 -------
The front-end already changed it into being = {};, a[0] = ...
<<cleanup_point int v[4] = {};>>;
<<cleanup_point <<< Unknown tree: expr_stmt
<<< Unknown tree: expr_stmt
v[0] = a >>>
;
<<< Unknown tree: expr_stmt
v[1] = b >>>
;
<<< Unknown tree: expr_stmt
v[2] = c >>>
;
<<< Unknown tree: expr_stmt
v[3] = d >>>
; >>>
>>;
I thought there was a duplicate of this bug somewhere.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |missed-optimization
Last reconfirmed|0000-00-00 00:00:00 |2009-12-30 19:47:23
date| |
Summary|Unnecessary generation of a |Unnecessary generation of a
|zero initializer for array |zero initializer for array
|with C++ |with C++
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42556
More information about the Gcc-bugs
mailing list