Re: RFC: Enable __declspec for Linux/x86

2007-04-03 Thread Ross Ridge
Joe Buck write: >If the Windows version of GCC has to recognize __declspec to function >as a hosted compiler on Windows, then the work already needs to be done >to implement it. Well, I'm kinda surprised that Windows verision of GCC recognizes __declspec. The implementation is just a simple macro

RE: RFC: Enable __declspec for Linux/x86

2007-04-03 Thread Dave Korn
On 03 April 2007 01:37, Andrew Pinski wrote: > On 4/2/07, H. J. Lu <[EMAIL PROTECTED]> wrote: >> I believe __declspec in Intel C++ compiler comes from: >> >> http://msdn2.microsoft.com/en-us/library/dabb5z75.aspx > > How is Microsoft documentation, the real documentation for Intel C++ > compiler

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread Andrew Pinski
On 4/2/07, H. J. Lu <[EMAIL PROTECTED]> wrote: I believe __declspec in Intel C++ compiler comes from: http://msdn2.microsoft.com/en-us/library/dabb5z75.aspx How is Microsoft documentation, the real documentation for Intel C++ compiler? Have you seen the Cell language extension document [1]?

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread H. J. Lu
On Mon, Apr 02, 2007 at 03:11:06PM -0700, Andrew Pinski wrote: > On 4/2/07, Joe Buck <[EMAIL PROTECTED]> wrote: > >If the Windows version of GCC has to recognize __declspec to function > >as a hosted compiler on Windows, then the work already needs to be done > >to implement it. So what's the harm

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread Andrew Pinski
On 4/2/07, Joe Buck <[EMAIL PROTECTED]> wrote: If the Windows version of GCC has to recognize __declspec to function as a hosted compiler on Windows, then the work already needs to be done to implement it. So what's the harm in allowing it on other platforms? If it makes it easier for Windows pr

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread Joe Buck
On Mon, Apr 02, 2007 at 11:26:16PM +0200, Steven Bosscher wrote: > On 4/2/07, Andrew Pinski <[EMAIL PROTECTED]> wrote: > >On 4/2/07, Mike Stump <[EMAIL PROTECTED]> wrote: > >> > >> I suspect I'd want this for x86 darwin as well. > > > >Why emulate Windows compilers on non windows machine? That is

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread Steven Bosscher
On 4/2/07, Andrew Pinski <[EMAIL PROTECTED]> wrote: On 4/2/07, Mike Stump <[EMAIL PROTECTED]> wrote: > > I suspect I'd want this for x86 darwin as well. Why emulate Windows compilers on non windows machine? That is wrong. GCC for Linux/Darwin/any other OS besides Windows is not a Windows compil

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread Andrew Pinski
On 4/2/07, Andrew Pinski <[EMAIL PROTECTED]> wrote: Why emulate Windows compilers on non windows machine? That is wrong. GCC for Linux/Darwin/any other OS besides Windows is not a Windows compiler and should not act like one. If people want to port their code, they should write their code to be

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread Andrew Pinski
On 4/2/07, Mike Stump <[EMAIL PROTECTED]> wrote: I suspect I'd want this for x86 darwin as well. Why emulate Windows compilers on non windows machine? That is wrong. GCC for Linux/Darwin/any other OS besides Windows is not a Windows compiler and should not act like one. If people want to por

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread Mike Stump
On Apr 2, 2007, at 2:03 PM, H. J. Lu 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: 1. Define TARGET_DECLSPEC for Linux/x86. 2. Define TARGET_DECLSPEC for x86. 3. Add -mdeclspec. Any comments? I suspect I'd

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread Andrew Pinski
On 4/2/07, H. J. Lu <[EMAIL PROTECTED]> wrote: It won't work with __declspec(align(16)) double x [4]; And the code should be converted over to use GCC style attributes. So really the code should be something like: #ifndef __WIN32__ #define __align16 __attribute__((align(16) )) #else #define

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread H. J. Lu
On Mon, Apr 02, 2007 at 02:06:15PM -0700, Andrew Pinski wrote: > On 4/2/07, H. J. Lu <[EMAIL PROTECTED]> 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 __W

Re: RFC: Enable __declspec for Linux/x86

2007-04-02 Thread Andrew Pinski
On 4/2/07, H. J. Lu <[EMAIL PROTECTED]> 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