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]

Re: HPPA constructor merge patch, PR middle-end/45388


On 09/27/2010 01:29 PM, Steve Ellcey wrote:
> 	PR middle-end/45388
> 	* ipa.c: Set TREE_PUBLIC on constructors/destructors.

Not ok.  Constructors should not be public when we
do have .ctor/.dtor support.

This is supposed to be handled in cgraph_build_static_cdtor,

  if (!targetm.have_ctors_dtors)
    {
      TREE_PUBLIC (decl) = 1;
      DECL_PRESERVE_P (decl) = 1;
    }

there.  Can you figure out if that bit isn't being triggered?


r~


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