Re: [plugins] Comparison of plugin mechanisms

2009-02-17 Thread Le-Chun Wu
it suit your purposes or some changes are also required? > I would like to add info about your plugin system but just > don't have much knowledge about that ... > > Cheers, > Grigori > >> -Original Message- >> From: Basile STARYNKEVITCH [mailto:bas...@starynkevitch

Re: Plugin API Comments (was Re: GCC Plug-in Framework ready to port)

2009-02-06 Thread Le-Chun Wu
> - Modify the GCC link process to use libltdl and libtool -export-dynamic > - Add the custom argument handler > - Implement the callback registration code > - Add hooks at relevant locations in GCC > - Implement the plug-in loading code and plug-in initialization > > Se

Re: Plugin API Comments (was Re: GCC Plug-in Framework ready to port)

2009-02-05 Thread Le-Chun Wu
, we can start with those too. Thanks. Le-chun On Thu, Feb 5, 2009 at 3:27 PM, Taras Glek wrote: > Le-Chun Wu wrote: >> >> Hi Sean, >> >> It's great that you updated the wiki page with the latest and more >> detailed API design. >> >> We (at Goog

Re: Plugin API Comments (was Re: GCC Plug-in Framework ready to port)

2009-02-04 Thread Le-Chun Wu
mping for plugin passes (e.g. -fdump-tree-newpass). IR dumping of plugin passes is enabled only when the dump-all flags (e.g. -fdump-tree-all) are specified. What do people think about this pass registration/positioning interface that I described? (Again, I will send out our patch later so that pe

Re: Thread safety annotations and analysis in GCC

2008-07-29 Thread Le-Chun Wu
Ken, Thanks a lot for your feedback. Somehow your email fell through the cracks and I didn't notice it until a colleague of mine reminded me. Sorry for my delay in replying. Here are my answers to your questions. > > All the examples seem to be C++ oriented; is it, in fact, a goal for the > anno

Re: How to determine if a decl is a class member in GCC

2008-07-22 Thread Le-Chun Wu
AIL PROTECTED]> wrote: > Le-Chun Wu wrote: >> >> Hi, >> >> I haven't heard anything back on my questions. Can any of C++ frontend >> maintainers please shed some light (or comment on my proposed patch)? >> Thanks a lot. >> >> Le-chun >

Re: How to determine if a decl is a class member in GCC

2008-07-21 Thread Le-Chun Wu
Hi, I haven't heard anything back on my questions. Can any of C++ frontend maintainers please shed some light (or comment on my proposed patch)? Thanks a lot. Le-chun On Fri, Jul 18, 2008 at 10:22 AM, Le-Chun Wu <[EMAIL PROTECTED]> wrote: > Hi, > > In my attribute handlers

How to determine if a decl is a class member in GCC

2008-07-18 Thread Le-Chun Wu
Hi, In my attribute handlers that handle the new thread-safety attributes (in c-common.c), I need to check if a decl is a class member. How do people do that? My original code was checking if a decl is a FIELD_DECL but that doesn't work for static members. I also tried to use DECL_CONTEXT but it i

thread-annotations branch created

2008-06-18 Thread Le-Chun Wu
Hi, I have created the branch "thread-annotations" that contains the implementation of the thread safety annotations and analysis (described in http://docs.google.com/Doc?id=ddqtfwhb_0c49t6zgr). I have committed the initial implementation and a set of new test cases to the branch. I've also create

Re: Thread safety annotations and analysis in GCC

2008-06-17 Thread Le-Chun Wu
Tom, Thanks a lot for pointing us to the sparse annotations. We will take a look and see what its support looks like. Le-chun On Sun, Jun 15, 2008 at 2:43 PM, Tom Tromey <[EMAIL PROTECTED]> wrote: >>>>>> "Le-Chun" == Le-Chun Wu <[EMAIL PROTECTED]> writes:

testsuite location for adding new tests

2008-06-12 Thread Le-Chun Wu
Hi, As part of our thread safety annotation/analysis effort, we created about 17 new test cases that we would like to add to the gcc testsuite. Should we create a new sub-directory under testsuite/g++.dg (say, for example, g++.dg/thread-ann)? Or should we add them to an existing sub-dir, e.g. test

Re: Thread safety annotations and analysis in GCC

2008-06-10 Thread Le-Chun Wu
hun On Mon, Jun 9, 2008 at 8:33 PM, Andi Kleen <[EMAIL PROTECTED]> wrote: > "Le-Chun Wu" <[EMAIL PROTECTED]> writes: >> >> Please let me know if you have any feedback/comments/questions on the >> proposed annotations and the GCC implementation. > > I was

Thread safety annotations and analysis in GCC

2008-06-09 Thread Le-Chun Wu
will send out another email once the public branch is created. Thanks, Le-Chun Wu ts_annotations.patch.gz Description: GNU Zip compressed data