Re: Notes toward re-implementing EH in gimple

2009-08-07 Thread Richard Henderson
On 08/07/2009 12:31 PM, Richard Guenther wrote: L.N: exc_ptr.1 = EXC_PTR_EXPR (N); filter.1 = FILTER_EXPR (N); Will exc_ptr.1 and filter.1 be gimple registers? Yes. Does the above have virtual operands, thus are there any aliases to whatever EXP_PTR_EXPR or FILTER_EXPR load? No and no

Re: Notes toward re-implementing EH in gimple

2009-08-07 Thread Richard Guenther
On Fri, Aug 7, 2009 at 9:22 PM, Richard Henderson wrote: > On 08/06/2009 12:35 PM, Richard Henderson wrote: >> >>  { exc_ptr, filter } = EH_LANDING_PAD; >> >>        Placeholder for the landing-pad rtl.  Has 2 outputs >>        for both the exception pointer and the filter. > > I'm going to drop th

Re: Notes toward re-implementing EH in gimple

2009-08-07 Thread Richard Henderson
On 08/06/2009 12:35 PM, Richard Henderson wrote: { exc_ptr, filter } = EH_LANDING_PAD; Placeholder for the landing-pad rtl. Has 2 outputs for both the exception pointer and the filter. I'm going to drop this construct. Instead, I'm going to mark the label, and have the land

Re: Asymmetry of user-difined swap and distance

2009-08-07 Thread Maxim Dementiev
On Fri, 7 Aug 2009 19:19:03 +0100 Jonathan Wakely wrote: 2009/8/7 Maxim Dementiev: It means that swap for user types could be defined either in std namespace or in the user type namespace (argument-dependent name lookup). Yes, this is intentional. swap() is a point of customisation point, s

Re: Asymmetry of user-difined swap and distance

2009-08-07 Thread Jonathan Wakely
2009/8/7 Maxim Dementiev: > > It means that swap for user types could be defined either in std namespace > or in the user type namespace (argument-dependent name lookup). Yes, this is intentional. swap() is a point of customisation point, see http://www.ddj.com/cpp/184401876 and the definition in

Re: c-c++-common testsuite

2009-08-07 Thread Janis Johnson
On Fri, 2009-08-07 at 15:48 +0200, Manuel López-Ibáñez wrote: > Janis, it would be extremely useful to have dg-options that are only > enabled for certain languages, so I can do > > /* { dg-options "-std=c99" { dg-require-effective-target c } } */ > /* { dg-options "" { dg-require-effective-target

Asymmetry of user-difined swap and distance

2009-08-07 Thread Maxim Dementiev
Hi, Let's have a look at std::pair<>::swap and std::lower_bound<> implementations. 1. pair::swap in http://gcc.gnu.org/viewcvs/trunk/libstdc%2B%2B-v3/include/bits/stl_pair.h?view=markup void swap(pair& __p) { using std::swap; swap(first, __p.first); sw

Re: c-c++-common testsuite

2009-08-07 Thread Manuel López-Ibáñez
2009/8/7 Janis Johnson : > On Fri, 2009-08-07 at 00:06 +0200, Manuel López-Ibáñez wrote: >> Often I want to test the exactly same testcase in C and C++, so I find >> myself adding duplicate tests under gcc.dg/ and g++.dg/. Would it be >> possible to have a shared testsuite dir that is run for both

Re: c-c++-common testsuite

2009-08-07 Thread Daniel Jacobowitz
On Thu, Aug 06, 2009 at 05:38:01PM -0700, Janis Johnson wrote: > I've been thinking about that lately, it would be useful for several > kinds of functionality. We'd want effective targets for the language > for using different options and for providing different error/warning > checks for each lan

RE: PRE_DEC, POST_INC

2009-08-07 Thread Bingfeng Mei
I asked similar question regarding PRE_INC/POST_INC quite a while ago, and there were quite some discussions. Haven't check whether the situation changed. http://gcc.gnu.org/ml/gcc/2007-11/msg00032.html Bingfeng Mei > -Original Message- > From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gc

Re: PRE_DEC, POST_INC

2009-08-07 Thread Ramana Radhakrishnan
On Fri, Aug 7, 2009 at 1:33 PM, Florent Defay wrote: > Hi, > > I am working on a new port. > > The target machine supports post-increment and pre-decrement > addressing modes. These modes are twice faster than indexed mode. > It is important for us that GCC consider them well. GCC does support ge

Re: regarding optimization options in phase ordering

2009-08-07 Thread pms
thanks, But b=a is a assignment statement. It is doing some memory operations isn't it. Assuming b=a is a dead statement, how r the following i386 assembly statements generated pushl %ebp movl%esp, %ebp andl$-16, %esp subl$16, %esp movl$5, 4(%esp)

Re: gcc git's performance problem Fwd: git gc expanding packed data?

2009-08-07 Thread Frank Ch. Eigler
Hi - Nicolas wrote: > Anyone has an idea of the git version running on gcc.gnu.org? It is > certainly buggy and needs fixing. It was 1.6.3.2 now it's 1.6.4, practically spring chickens. > Anyway... To solve your problem, you simply need to run 'git gc' with > the --prune=now [...] > And BTW,

PRE_DEC, POST_INC

2009-08-07 Thread Florent Defay
Hi, I am working on a new port. The target machine supports post-increment and pre-decrement addressing modes. These modes are twice faster than indexed mode. It is important for us that GCC consider them well. I wrote emails to gcc-help and I was told that GCC was not so good at pre/post-dec/in

Re: regarding optimization options in phase ordering

2009-08-07 Thread Richard Guenther
On Fri, Aug 7, 2009 at 1:50 PM, pms wrote: > > Hi, >     We've a problem here. we were trying to use cc1 with & without -O > option to verify the optimizations happening in our sample code. these r the > list of outputs after each compilation > without -O > p...@shiva:~/Desktop/Compilers/GCC/build/

regarding optimization options in phase ordering

2009-08-07 Thread pms
Hi, We've a problem here. we were trying to use cc1 with & without -O option to verify the optimizations happening in our sample code. these r the list of outputs after each compilation without -O p...@shiva:~/Desktop/Compilers/GCC/build/test$ ls 1.c1.c.011t.ehopt1.c.0

Re: c-c++-common testsuite

2009-08-07 Thread Joseph S. Myers
On Fri, 7 Aug 2009, Dave Korn wrote: > Possibly we could modify the algorithm that enumerates directories matching > "$tool.*" to look for (e.g.) "*$tool.*" and then name directories like > "c.c++.dg"? The algorithm is hardcoded in core DejaGnu (runtest.exp). -- Joseph S. Myers jos...@codeso

Re: Doubt regarding gcc

2009-08-07 Thread Dave Korn
Mr. Vivek Varghese Jacob wrote: > hey, > > i would like to know the latest stable version of gcc... > i have went through the website.. > > waiting for the reply, > > vivek There are two stable release branches maintained at any time, one current and one previous, and the most recent versions

Re: Doubt regarding gcc

2009-08-07 Thread Jonathan Wakely
2009/8/7 Mr. Vivek Varghese Jacob: > > i would like to know the latest stable version of gcc... > i have went through the website.. Did you miss the front page? And the releases page? If you still can't find the information* please send your question to gcc-h...@gcc.gnu.org instead. Jonathan *

Doubt regarding gcc

2009-08-07 Thread Mr. Vivek Varghese Jacob
hey, i would like to know the latest stable version of gcc... i have went through the website.. waiting for the reply, vivek