[csl-sol210-branch] Patch to support Solaris 2.10
Richard Henderson
rth@redhat.com
Fri Sep 24 20:03:00 GMT 2004
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~
More information about the Gcc-patches
mailing list