This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Enable __declspec for Linux/x86
On Mon, Apr 02, 2007 at 02:06:15PM -0700, Andrew Pinski wrote:
> On 4/2/07, H. J. Lu <hjl@lucon.org> wrote:
> >Many x86 SSE source codes use __declspec. I'd like to make
> >__declspec available for Linux/x86. We can do one of the
> >following:
>
> Do the following in the sources:
> #ifndef __WIN32__
> #define __declspec(x)
> #endif
>
> or in the makefiles:
> Add "-D__declspec(x)=" to CFLAGS/CXXFLAGS.
It won't work with
__declspec(align(16)) double x [4];
H.J.