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: [csl-sol210-branch] Patch to support Solaris 2.10


On Thu, Sep 23, 2004 at 10:33:43PM -0400, Daniel Jacobowitz wrote:
> Can you describe why?  The pragma handler gets called during parsing
> (there's plenty of precedent for pragmas which have similar
> time-of-application behavior to attributes - see pack()), so I think
> it's no different than having __attribute__((used)) in the source.

static void foo () { }
#pragma init (foo)

I'm pretty sure that we cgraph_finalize this function before we
see the init, and so cgraph makes its decisions *without* the
attribute used.

Should be particularly apparent with -fno-unit-at-a-time.



r~


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