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: [PATCH, i386]: Fix PR target/35553, -fkeep-inline-functions and -O errors our in SSE headers


On Thu, Mar 13, 2008 at 02:43:37PM +0100, Paolo Bonzini wrote:
> 
> >The one complexity with the "extern inline" solution (as mentioned in the
> >comments on that PR) is that you really do need extern definitions of the
> >functions (presumably in libgcc), for -fno-inline or in case someone
> >references an _mm_* function as a pointer-to-function.
> 
> I think __artificial__ should forbid taking pointer-to-functions (not 
> that it does!).

No.  __artificial__ is used for all kinds of wrappers e.g. in glibc, and
if you forbid e.g. taking pointer-to-functions for artificial inlines,
you couldn't take address of memcpy, printf, memset and many other
functions.

The _mm_* intrinsics are simply intrinsics, which can be just called,
anything else is undefined.  You get undefined externals,
or compile time errors because the intrinsic was a macro or even keyword,
etc.

	Jakub


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