RFC: redundant stores in C++
Dale Johannesen
dalej@apple.com
Sun Oct 2 03:12:00 GMT 2005
On Oct 1, 2005, at 7:29 PM, Andrew Pinski wrote:
> I don't think this will work for the following code:
>
> void foo(char a, char b) {
> char x[4] = { a, b } ;
> if (x[3] != 0)
> abort ();
> }
Duh. I thought that was too easy.
> But better fix would be not call split_nonconstant_init_1 for
> local decls and have the front-end produce a CONSTRUCTOR which is
> just like what the C front-end produces.
I'll try it.
\
More information about the Gcc
mailing list