This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC]: patch to detect invalid and missing ATTRIBUTE const/pure
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: jakub at redhat dot com
- Cc: dann at ics dot uci dot edu, gcc-patches at gcc dot gnu dot org, jh at suse dot cz, john at feith dot com, mark at codesourcery dot com, rth at redhat dot com
- Date: Fri, 22 Mar 2002 11:35:01 -0500 (EST)
- Subject: Re: [RFC]: patch to detect invalid and missing ATTRIBUTE const/pure
> From: Jakub Jelinek <jakub@redhat.com>
>
> On Fri, Mar 22, 2002 at 10:03:27AM -0500, Kaveh R. Ghazi wrote:
> >
> > Now any calls to foo() inside the original module would resovle to the
> > definition inside the file, regardless of whether we eventually link
> > with a shared lib having another copy of foo, right?
>
> Only if foo is static or MODULE_LOCAL_P. Otherwise anyone can interpose
> a different version of foo which is not pure.
> Jakub
Gotcha.
So any thoughts on the issue with noreturn functions?
--
Kaveh R. Ghazi Director of Systems Architecture
ghazi@caip.rutgers.edu Qwest Global Services