This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to detect constant functions (version 2)
Richard Henderson <rth@cygnus.com> writes:
> Something that Jeff mentioned last night is that non-static functions
> in shared libraries may be overridden. How to designate that you're
> building for a shared library (or on a system that doesn't override
> symbols) is something that will need consider. Most of the time it is
> with -fpic, but there are exceptions -- hp/ux and aix come to mind.
>
> In the mean time, we can only do this for static functions.
This also applies to non-static functions which are weak, even in
executables.
--
Geoffrey Keating <geoffk@cygnus.com>