This is the mail archive of the gcc-patches@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]

[PATCH] PR optimization/12324


Hi,
the problem is that we deffer compound literals until after finalizing
compilation unit (like we currently do for declarations without initializer).
I don't see any reason for doing so.  Would be this OK?

Sat Sep 27 15:52:52 CEST 2003  Jan Hubicka  <jh@suse.cz>
	PR optimization/12324
	* c-decl.c (build_compound_literal): Do not deffer it.
Index: c-decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-decl.c,v
retrieving revision 1.451
diff -c -3 -p -r1.451 c-decl.c
*** c-decl.c	25 Sep 2003 01:25:46 -0000	1.451
--- c-decl.c	27 Sep 2003 13:50:29 -0000
*************** build_compound_literal (tree type, tree 
*** 3090,3096 ****
  			       compound_literal_number);
        compound_literal_number++;
        DECL_NAME (decl) = get_identifier (name);
-       DECL_DEFER_OUTPUT (decl) = 1;
        DECL_COMDAT (decl) = 1;
        DECL_ARTIFICIAL (decl) = 1;
        pushdecl (decl);
--- 3090,3095 ----


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