This is the mail archive of the
mailing list for the GCC project.
Re: is this an appropriate use of the "target-specific builtin#defines"?
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Jonathan Wilson <jonwil at tpgi dot com dot au>, gcc at gnu dot org
- Date: Tue, 21 Oct 2003 00:15:35 -0700
- Subject: Re: is this an appropriate use of the "target-specific builtin#defines"?
- References: <3F948CD1.email@example.com> <20031021064841.GC942@redhat.com>
Richard Henderson <firstname.lastname@example.org> writes:
> On Tue, Oct 21, 2003 at 09:33:05AM +0800, Jonathan Wilson wrote:
>> What I want to do (to make things easy) is to add a builtin #define like
>> #define __declspec(thread) __thread
> Think about it. This is not how the preprocessor works.
And then look at the existing arrangement for handling
__declspec(foobar), and think about how you can make that
do what you need.
(Most, if not all, of the questions you have been asking can be
answered by reading and understanding the source code, which you need
to do anyway in order to implement the changes you want to make.)