Re: Defining a common plugin machinery

2008-10-06 Thread Taras
result of the plugin API discussion at the GCC summit. Taras

Re: Defining a common plugin machinery

2008-10-06 Thread Taras
Joseph S. Myers wrote: On Mon, 6 Oct 2008, Taras wrote: http://gcc.gnu.org/wiki/GCC_PluginAPI I put up an API proposal. It's a result of the plugin API discussion at the GCC summit. I believe the API also needs interfaces for verifying compatibility (exporting the require

Re: gcc-in-cxx: Garbage Collecting STL Containers

2008-06-25 Thread Taras
nnotations elsewhere in the code, so the system should be improved, not canned. Taras On Wed, Jun 25, 2008 at 10:49 AM, Tom Tromey <[EMAIL PROTECTED]> wrote: "Daniel" == Daniel Jacobowitz <[EMAIL PROTECTED]> writes: On Wed, Jun 25, 2008 at 08:35:41AM -0600

Re: gcc-in-cxx: Garbage Collecting STL Containers

2008-06-25 Thread Taras
nnotations elsewhere in the code, so the system should be improved, not canned. Taras On Wed, Jun 25, 2008 at 10:49 AM, Tom Tromey <[EMAIL PROTECTED]> wrote: "Daniel" == Daniel Jacobowitz <[EMAIL PROTECTED]> writes: On Wed, Jun 25, 2008 at 08:35:41AM -0600

Re: dumping the tree

2008-07-02 Thread Taras
UNCTION(t) - but that doesn't work now either. Working copy of my patches is available for your reference at http://necago.ic.cz/prj/scc/ We support this sort of thing in Mozilla's Treehydra gcc plugin. See http://developer.mozilla.org/en/docs/Treehydra In addition to cfg you can get much other stuff such as types. Taras

Re: Defining a common plugin machinery

2008-09-19 Thread Taras
the resulting binary to do LTO-style analyses. How well is that working for you? Taras

Re: Defining a common plugin machinery

2008-09-19 Thread Taras
cc as well. In our case, plugin users do no need the sources, they just need a binary for the compiler and the plugin which can be provided by their package manager. Cheers, Taras

Re: [RFC] Remove -freorder-blocks-and-partition

2011-08-04 Thread Taras Glek
their bug reporting tool not being able to do unwind info for split functions. Taras, do you have any data if the partitioning helps? Honza Currently it does not help. I believe it has potential since we have a lot of large methods where only a small part of them gets run. Taras

Re: Defining a common plugin machinery

2008-10-08 Thread Taras Glek
Grigori Fursin wrote: Thanks, Taras! I slightly updated this page, i.e. we would like to be able to load plugins through environment variables to be able to optimize programs transparently as it is done in MILEPOST GCC (without Makefile modifications). By the way, we plan to extend the

Re: Defining a common plugin machinery

2008-10-09 Thread Taras Glek
ossible that these handlers might need to return an integer value, but so far in my plugin work I have not needed that so I didn't include return values in the proposal. Taras

Re: Defining a common plugin machinery

2008-10-09 Thread Taras Glek
fields to be used as outparams(I like this idea as it means no changes are needed :)? Taras

Re: Defining a common plugin machinery

2008-10-10 Thread Taras Glek
/Treehydra Great to see that others independantly identified need for the same functionality. Hopefully the patch will go into the next development cycle. Taras Cheers, Cupertino On Oct 10, 2008, at 4:14 PM, Grigori Fursin wrote: I currently don't have any preference for a specific w

Re: GCC Plug-in Framework ready to port

2009-01-31 Thread Taras Glek
important that we agree on an API so that every group can easily port their plugins to it. Indeed. As a maintainer of a couple gcc plugins and a corresponding API, what can I do to help out? Taras https://developer.mozilla.org/En/Dehydra

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

2009-02-02 Thread Taras Glek
ra However any formalization should make my life easier. Sean, I agree with you and I think others will too, so please go ahead and make your API modifications on the wiki Taras

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

2009-02-02 Thread Taras Glek
call. The plugin should check the gcc version it is being loaded into on startup and bail if it doesn't match. Taras

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

2009-02-05 Thread Taras Glek
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 Google) also started to look at the GCC plugin support a couple of weeks ago. We had a quick prototype implemented based on the original APIs that Taras put together i

Re: [plugins] Comparison of plugin mechanisms

2009-02-17 Thread Taras Glek
to support "experimental" plugins by the beginning of next week. In the mean time, would like to know your thoughts on that matter and how should we proceed forward !.. Like I said, I don't think the communities are as distinct as you are implying. Cheers, Taras

Re: Restricted version for GCC?

2009-04-27 Thread Taras Glek
/GCC_PluginAPI We do this sort of thing in Mozilla with stuff like https://developer.mozilla.org/En/Dehydra. Taras

plugin callbacks after compiler errors

2009-06-09 Thread Taras Glek
plugins running into this issue? Taras

Re: plugin callbacks after compiler errors

2009-06-09 Thread Taras Glek
Diego Novillo wrote: On Tue, Jun 9, 2009 at 15:33, Taras Glek wrote: While developing my plugin I've noticed that many callbacks need to be guarded with "if (errorcount)" or the plugin will cause a gcc crash due to receiving less complete data than it expected. More

[plugins] language makefiles and installing cp/ headers

2009-06-19 Thread Taras Glek
stall-plugin target. Now I'm stuck, it's not clear to me how to call my new target from Makefile.in properly. In the attachment, I call it as a dependency on install-plugin, but that's obviously hack. Can someone suggest a proper way to do this? Thanks, Taras diff --git a/g

Massive performance regression from switching to gcc 4.5

2010-06-24 Thread Taras Glek
switchover to 4.5. I'm not sure how to proceed from here, Taras

Re: Massive performance regression from switching to gcc 4.5

2010-06-30 Thread Taras Glek
On 06/24/2010 12:06 PM, Andrew Pinski wrote: On Jun 24, 2010, at 11:50 AM, Taras Glek wrote: Hi, Just wanted to give a heads up on what might be the biggest compiler-upgrade-related performance difference we've seen at Mozilla. We switched gcc4.3 for gcc4.5 and our automated benchma

Re: Massive performance regression from switching to gcc 4.5

2010-06-30 Thread Taras Glek
On 06/30/2010 02:26 PM, Basile Starynkevitch wrote: On Wed, 2010-06-30 at 14:23 -0700, Taras Glek wrote: I tried 4.5 -O2 and it's actually faster than 4.3 -Os. I am happy that -O2 performance is actually pretty good, but -Os regression is going to hurt on mobile. Did you try gc

Crucial C++ inlining broken under -Os

2010-07-01 Thread Taras Glek
On 06/30/2010 03:06 PM, Jan Hubicka wrote: If you can find actual simple examples where -Os is losing size and speed we can try to do something about them. According to our code size reports, inlining is completely screwed for C++ wrapper classes like ones often used for smart pointers, arr

Re: Crucial C++ inlining broken under -Os

2010-07-01 Thread Taras Glek
On 07/01/2010 02:27 PM, Richard Guenther wrote: On Thu, Jul 1, 2010 at 10:29 PM, Taras Glek wrote: On 06/30/2010 03:06 PM, Jan Hubicka wrote: If you can find actual simple examples where -Os is losing size and speed we can try to do something about them. According to our code size reports

Re: Crucial C++ inlining broken under -Os

2010-07-01 Thread Taras Glek
On 07/01/2010 02:45 PM, Richard Guenther wrote: On Thu, Jul 1, 2010 at 11:36 PM, Taras Glek wrote: On 07/01/2010 02:27 PM, Richard Guenther wrote: On Thu, Jul 1, 2010 at 10:29 PM, Taras Glekwrote: On 06/30/2010 03:06 PM, Jan Hubicka wrote: If you can find actual simple examples where

GCC pretty printer + typedefs

2008-01-17 Thread Taras Glek
manifestation of the major issue: typedef int* pint; pint foo; <-- type_as_string(type, 0) returns "int*" Is the following behavior intentional? typedef int t1; class c{ typedef t1 t2; t2 v; <-- type_as_string returns "t1". }; Thanks, Taras More info on my plugin: http://wiki.mozilla.org/Dehydra_GCC

GTY as attributes

2008-02-22 Thread Taras Glek
u be willing to accept such a change? Another possible benefit of raising GTYs to attribute status would be that other projects could do compile-time reflection similar to what GCC does in a semi-formal way. Thanks, Taras ps. For more info on my plugin see http://wiki.mozilla.org/Dehydra_GCC

Re: New GCC ICI v0.9.5 (bug fixes + new examples)

2008-02-22 Thread Taras Glek
e and combine our efforts to push this upstream(or at least into Linux distributions) The homepage for my plugin work is: http://wiki.mozilla.org/Dehydra_GCC See my blog for more details http://blog.mozilla.com/tglek I'm looking forward to hearing from you. Taras Grigori Fursin wrot

Re: Defining a common plugin machinery

2008-09-16 Thread Taras Glek
ing acceptable and submit stuff for review. See http://developer.mozilla.org/en/Dehydra for more details on Mozilla's plugin work. Cheers, Taras

Re: Progress on GCC plugins ?

2007-11-25 Thread Taras Glek
local. Someone could write a helper library to make it relatively simple to hook in. But... I looked at this recently, and since gcc is not linked with -rdynamic, it is a non-starter. Tom, I don't know much about linkers and LD_PRELOAD. Would making LD_PRELOAD work be easier than making an unstable plugin API? Taras