This is the mail archive of the gcc@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]

is this an appropriate use of the "target-specific builtin #defines"?


Basicly, on win32, __declspec(thread) says "this variable is Thread Specific".
GCC uses __thread in exactly the same way.

Now I have been informed that making __declspec(thread) do the right thing inside the parser (so that it works as expected) is difficult.

What I want to do (to make things easy) is to add a builtin #define like this:
#define __declspec(thread) __thread
That way, we avoid all the messy stuff in the parser (which is not a good idea so close to branch for 1.4 (I am trying to avoid changes to non-i386 bits in the hope that the changes are "small enough" to get into 3.4)




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