Fix ctors/dtors on non-elf systems

Jan Hubicka hubicka@ucw.cz
Fri May 20 08:26:00 GMT 2005


Hi,
this patch should fix the AIX bootstrap failure (It definitly fixes the
testcase I received from Steven).  The problem is that ctor/dtor
functions are produced late and they miss the lowering pass.
I can't test AIX bootstrap myself, but since the particular testcase is
fixed, I will commit it now.  Please let me know if bootstrap still
breaks.

I apologize for the breakage.

2005-05-20  Jan Hubicka  <jh@suse.cz>
	* cgraphunit.c (cgraph_expand_function): Force function being lowered.
Index: cgraphunit.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cgraphunit.c,v
retrieving revision 1.105
diff -c -3 -p -r1.105 cgraphunit.c
*** cgraphunit.c	17 May 2005 16:56:22 -0000	1.105
--- cgraphunit.c	19 May 2005 10:34:57 -0000
*************** cgraph_expand_function (struct cgraph_no
*** 989,994 ****
--- 989,996 ----
    if (flag_unit_at_a_time)
      announce_function (decl);
  
+   cgraph_lower_function (node);
+ 
    /* Generate RTL for the body of DECL.  */
    lang_hooks.callgraph.expand_function (decl);
  



More information about the Gcc-patches mailing list